views:

131

answers:

3

Hi guys

I've made an IPhone App that communicates to a service by calling a webservice and exchanging data as xml. For this to take place, there should be WIFI access.

What I'm trying to do now is to do the same but in places without WIFI access. The only way I can think of doing this would be through the USB cable (dock cable?). Unfortunately, no amount of searching online has revealed a way to do this. Is it even possible? Does anyone know how to do this? Some pointers on at least where to look for this information would be nice

+3  A: 

Syncing through the USB cable is not possible AFAIK. Any syncing you do has to be over the network.

darren
A: 

This is possible. Cultured Code does syncing over Wifi, and on their wiki, they've found that you can do the same thing over USB and Bluetooth (provided the carrier supports tethering, cough cough AT&T cough cough).

So basically, as far as I know, if you do standard Bonjour syncing over a computer-to-computer network, it'll work over USB (and even Bluetooth) if the iPhone has tethering capabilities.

Carrier? My app is supposed to run on both the iphone and ipod so I'm not sure how that will work. Any comments on this? Also Why would tethering be dependant on the carrier anyway if all I'm doing is transfering data to and from a local computer (which may have its own wired or wifi connection)
Fahd
Well, this isn't an official way for syncing over USB -- its a hack that relies on tethering. In some countries, tethering is disabled on the iPhone, so it wouldn't work. On the iPod Touch, its completely impossible. So this type of of USB syncing shouldn't be the primary way of syncing, just an alternative for the lucky people who have tethering enabled.
A: 

The cable is simply USB, and you can certainly talk to a computer through this protocol. There is a developer program for this as well.

http://developer.apple.com/iphone/program/accessories/

-t

Tim
I'm slightly confused about this. This program is for having your iphone/ipod talk to an accessory. Would a Mac/Windows machine count as one? Also would you know if enrolling in this program costs anything? I didn't complete the enrollment myself since it needed some company info which I didn't have and my boss would like to know about costs before he goes ahead.
Fahd