i am looking out to check if its possible to transfer a file between 2 iPhone devices or between iPhone device and PC/Mac through Wifi.
If its possible is there any size constraint to the file?
BR,
Suppi
Use bonjour to search for devices. Then use CocoaAsyncSocket to send and receive data. It works like a charm.
Related
Is it possible to transmit GPS data from a GPS-enabled iPhone to a wifi-only iPad? Does anyone have sample code to share that would do this?
How about getting GPS data from an Android via bluetooth, over to a wifi iPad?
Yes, but you would need to create an application for both devices that would communicate with each other. You cannot get the location over wifi without a custom application sending the data.
Have a look at the WiTap sample app. This app allows two devices to find each other and send data to each other using WiFi. You can adapt this code so one device sends location data it obtains to the other device instead of info about which rectangle was tapped.
I have no info for doing this with Android.
I really searched on this topic for a while now. Especially when iOS 3 was the latest software version on the iPhone.
I wonder if there is a possibility to connect the iPhone to an external device via Bluetooth using the SDK and retrieve measured data?
Thanks for your help!
Greeting!
mary
If the Bluetooth device can masquerade as a Bluetooth keyboard, then it can send data to an iOS device encoded as keystrokes.
If the Bluetooth device is or can masquerade as a headset, then it might be able to send data encoded by an audio modulation scheme, such as FSK. A matching modem/codec will need to be running in the iOS app.
For the newest iOS devices (4S) you can use the new Bluetooth LE protocol to send data (older Bluetooth data communication protocols are not available to apps unless you are in Apple's NDA MFi program).
You have to look into the MFi Program by apple since you want your devices communicating. It provides support on using an external accessory with your iPhone, though you have to register/pay for it.
I'm guessing bluetooth.
What are the transfer speeds?
It would have to work on iPhones which are not jailbroken, although I'm still curious about how it could work better on jailbroken ones.
The GameKit GKSession class supports connecting to nearby instances of the same app using both Wi-Fi and Bluetooth. The choice of transport is completely automatic and hidden by the API. So you could use that to transfer data between nearby devices. I don't know what the transfer speed is like though. Probably not very good.
I guess, via "Bump Technology".
In my app, i want to send a file to another iOS device via bluetooth.
I don't want to install any app from app store which using bluetooth functionality.
I want to implement bluetooth functionality in my app and once it connected means it would list out available iOS devices ( bluetooth enabled devices ) and send a file to selected device via bluetooth.
Is that possible? I don't know where to start..
Please help in this regards..if any sample code for it means its very helpful to me..
Thanks!!!
You can use the iOS CoreBluetooth Framework for this, where you can send any kind of data by converting it to NSData.
You can find Apple's demo project over here -> Demo Project
PS: If you are not dealing with much complexities in your project, then you can also check this powerful library called LGBluetooth by l0gg3r on Github . Its pretty simple!
Cheers!
GameKit is probably a good starting point as that supports peer-to-peer connectivity
http://developer.apple.com/library/ios/#documentation/NetworkingInternet/Conceptual/GameKit_Guide/Introduction/Introduction.html
Not sure if the GameKit api's support sending files, and the documentation had this to say: Note: The largest message size allowed is 87 kilobytes. If you need to send more than that, you must split your data into multiple messages.
Here are some related questions as well:
iPhone: Sending large data with Game Kit
Send and receive NSData via GameKit
Using GameKit to transfer CoreData data between iPhones
You have to implement OBEX protocol FTP (File Transport Profile) to pushing / pulling .... files from other device :) It is not easy to do !!
Can a file be transferred from an iPhone to another iPhone/iPod/iPad and to my Mac/PC using Bluetooth using a iPhone App?
I posted a question yesterday with same content. This was migrated to superuser.com.
iPhone SDK 3.0: where is the Bluetooth?
in short: no.
I have not ever tried it, but GameKit exists on the iPhone, and the Mac - as part of that you can establish a network connection between two systems locally over bluetooth. You should be able to use that connection to transfer any data you like.
What you cannot do is write an iPhone application that makes use of the standard Bluetooth file transfer protocol - that is not supported. If you are open to a custom Mac/PC client though, it will work (PC client might be a lot trickier).