Access to the ANT Wireless and GPS receiver modules in iPhone/iPod Touch

别来无恙 提交于 2020-01-01 19:21:17

问题


I'm an iPhone/iPod-touch newbie, and would like to write an iPhone application utilizing the built-in ANT wireless radio. As I found out both the iPhone and iPod Touch have an ANT wireless module, that is used in the Nike+iPod Sport Kit to connect the Nike sensor with the iPhone/iPod.

After some googleing, I didn't find much (one article was interesting, but not what I'm looking for).

So my questions:

  • Is it possible to access the built-in ANT Wireless device in iPhone/iPod Touch?
  • Is it possible to access the built-in GPS module in iPhone?
  • Are there some APIs or SDKs that provide access to the ANT or the GPS module?

I can imagine that Apple is not eager opening the access to all of the iPhone features. But at least the GPS module should be accessible.


回答1:


The GPS radio is only accessible through the Core Location API, which will give you a latitude and longitude fix to your desired level of accuracy, but does not provide any low-level access to the radio. The ANT radio is not available using public APIs, although it may be possible to talk to it on a jailbroken phone. Any such application could not be distributed through the App Store, however.




回答2:


There are no APIs to take advantage of the ANT protocol. However, there is an API to exploit the integrated GPS, called Core Location and fairly easy to use.

The upcoming SDK 3.0 provides support for connecting to external devices through both cable and Bluetooth connections.



来源:https://stackoverflow.com/questions/692950/access-to-the-ant-wireless-and-gps-receiver-modules-in-iphone-ipod-touch

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!