is it any possibilities programmatically to detect bluetooth device from iphone, I done for wifi detection using WifiManager.bundle
I’m trying to do the same thing and having trouble finding information. Anyone know if its possible to get access to the Bluetooth information. I need to know its signal strength and ID. That all. I just want to show a list so I don’t think it even needs to pair.
Any info to get started would be much appriciated!
Related
Is it possible to send and receive data between iPhone and other phones such as blackberry or android over wifi. I am on the move it to create an iPhone app with the above functionality. Can any one has previous experience in this, or any sample codes to do this. I have searched a lot but couldn't find anything relevant.
you can do this by using a server application. So the iphone pushes the data to the server and the other devices are either getting push notifications or something similar or simply poll for the data.
Without a server, you have the trouble of finding the other devices. If its safe to assume they are all on the same subnet, then you could use a UDP broadcast to do this.
There's many ways of doing this, every one with its own pitfalls. So there's no generic answer to this question without knowing in more detail what's the purpose of it.
I want to know if an iPhone is connected to USB programmatically.
So far by googling i found http://developer.apple.com/programs/mfi/.
Do I really need this api to find out whether an iPhone is connected to USB device?
I just want to make an iPhone app that prints out in console whether the iPhone is connected with USB or not.
Thanks much.
You might be able to use the solution from this question.
The solution detects if the device's battery is currently being charged which, if connected to USB, most likely will be unless it is a 3rd party accessory in which case there's a different SDK for those I believe.
In any case, if the solution isn't helpful it might point you in the right direction.
UPDATE:
Did some more digging and it appears that this may not be possible other than the battery charging solution mentioned previously.
So to answer your question "Do I really need this api to find out whether an iPhone is connected to USB device?":
Yes, it appears that way.
I'm trying to find a way to detect when some iPhone device is near another device (which could be another iPhone, a PC or another kind of sensor/device).
Anyone knows how this could be accomplished? I've thought in the direction of bluetooth, but as I understand - some pairing must be done before. Can this be accomplished without pairing? if so, how can I identify exclusively the iPhone being detected?
Thanks,
Roman
You don't need pairing to determine proximity through Bluetooth. Searching for devices will only return the devices in your vicinity (due to the limited range of BT).
If you then want to communicate with this newly discovered device, it is slightly more complicated - but to just detect if there is other devices with BT enabled near-by scanning is enough.
Is it possible to transfer files of a bluetooth device, lets say a digital pen (e.g. Nokia or Logitech io2) to the iPhone? I am interested if I could do a native application that could somehow get that binary file sent by the digital pen and do something with it.
I am used to rfcomm and obex but I can only find inconclusive results when I search for that and the support in the iPhone SDK... Any ideas?
No, on a normal iPhone you are totally unable to do this.
However, it is totally capable and the functions most likely exist, but Apple doesn't want people using them so you aren't going to find anything in their documentation. An extremely large number of these functions exist. If you wrote an app containing one of these functions, Apple wouldn't let it into the app store.
They're extremely and reasonably concerned about safety. Bluetooth isn't exactly known for being secure in any form.
Look at the EAAccessory reference.
It seems like it should be possible to write a custom app that talks to any bluetooth device - you'd have to implement the file transfer protocol yourself, but now that apps are free to talk to bluetooth devices I don't think the API will prevent you from doing what you stated you want to do.
To my knowledge, no – the iPhone OS does currently not support filetransfers via Bluetooth. I think you will have to jailbreak the software to get enough access to the Bluetooth stack to pull it off.
It is very telling that even if you have Bluetooth turned on in your iPhone, it does not show up on other devices when searching for units to transfer files to. I suppose it's saying something in its Bluetooth signature that tells other devices that it doesn't receive files.
Is there a way to figure out the current data network available on iPhone? Whether it is EDGE or 3G?
It works for me even if its doable using core telephony private framework. I am not bothered about app store submission.
I know its very simple to identify whether the user is on Wifi or CellData network. But not able to find a way to identify the network type among edge or 3g?
Pleas also comment if you know a good core telephony documentation/tutorial to refer to.
I've never investigated this, you could try to start from the Rechability
example from Apple
http://developer.apple.com/iphone/library/samplecode/Reachability/