开发者

Device Communication or Notification Based on Proximity

开发者 https://www.devze.com 2023-02-16 17:02 出处:网络
How would one facilitate communication between devices based upon proximity given a particular app?Is it possible at this point?For example, if I have an iPhone or an iPhone and an Android based devic

How would one facilitate communication between devices based upon proximity given a particular app? Is it possible at this point? For example, if I have an iPhone or an iPhone and an Android based device, can I allow these devices to somehow transmit some beacon to each other so that they are able to recognize each other via an application or to at least know that they need to speak to a server at this point and tran开发者_运维技巧smit coordinates?


If the proximity requirement is of the order of few centi-meters then NFC (as mentioned by garzanti) is a good choice, (NFC is still a new technology being adopted in Mobile phones so current install base is limited) If the proximity requirement is of the order of few feet , then the best choice is Bluetooth, Bluetooth is available in a large number of devices/phones. Bluetooth has the initial inquiry/discovery process which is a beaconing process to discover nearby devices in vicinity to connect to, with this is is possible to implement and detect proximity of devices. On android this is fully supported and can be implemented easily. With iPhone Bluetooth public APIs are limited to only Gamekit , Gamekit uses internal automatic mechanism to detect devices in proximity running the same applications. Depending on your usage requirements it may be possible to do what you are thinking using the iPhone Bluetooth GameKit Apis, iPhone also has MFi program allowing use of Blueototh to develop accessories using Bluetooth and will have more detailed access into the iPhone Blueooth capabilities/apis , to use this you need to part of the Apple MFi program to get access. See here for MFi details: enter link description here


Yes, there is and is called NFC - Near Field Communication, but iPhone doesn't have yet support for this. It is presumed that starting with iPhone 5 they will support NFC. Android has already support for it, but you still need that your device has a chip included for this purpose.

What you could do it is to use Bluetooth: pair your devices first, keep them authenticated and after work with the RSSI - Resource Signal Strength Indicator (signal quality or attenuation). If the RSSI goes over a certain level that means that they are nearby and you can transfer information.

0

精彩评论

暂无评论...
验证码 换一张
取 消