ipad iphone开发_如何在iPad或iPhone上使用外部GPS设备

ipad iphone开发

ipad iphone开发

Untitled-7

If you bought a Wi-Fi only iPad and now you wish you could use GPS with it, this is the guide for you. Follow along to hook your iPad up to an external GPS unit and/or GPS-enabled smartphone phone.

如果您购买了仅支持Wi-Fi的iPad,现在希望与它一起使用GPS,这就是您的指南。 继续将iPad连接到外部GPS单元和/或启用GPS的智能手机。

There are a few reasons why you may want to undertake this quick project. Among those reasons: you have a GPS device with a long battery life and more accurate results than your iPhone or you have a Wi-Fi only iPad and want to add in mapping capabilities using GPS instead of coarse Wi-Fi location data.

有几个原因使您可能想要进行此快速项目。 这些原因包括:您的GPS设备具有比iPhone更长的电池寿命和更准确的结果,或者您拥有仅支持Wi-Fi的iPad,并且希望使用GPS代替粗略的Wi-Fi位置数据来添加地图功能。

你需要什么 (What You’ll Need)

For this tutorial you’ll need the following:

对于本教程,您需要以下内容:

  • An jailbroken iOS device (we’ll be using an iPad)

    越狱的iOS设备(我们将使用iPad)
  • BTstack GPS (Available in the Cydia store from the Big Boss repository, $5)

    BTstack GPS (在Big Boss仓库的Cydia商店有售,售价5美元)

  • A GPS receiver capable of sending coordinates via Bluetooth (we’ll be using an Android phone)

    GPS接收器能够通过蓝牙发送坐标(我们将使用Android手机)

Our instructions are specifically geared towards pairing an Android phone to an iPad but this technique can also be used to pair a TomTom GPS unit to an iPhone or an iPad, or any other number of combinations of external GPS devices and iOS devices.

我们的说明专门用于将Android手机与iPad配对,但是该技术也可以用于将TomTom GPS单元与iPhone或iPad配对,或将其他任意数量的外部GPS设备和iOS设备组合在一起。

Before we proceed, we’re going to stress again that you need a jailbroken device. This hack specifically takes advantage of a the ability of a jailbroken device to turn off the default Apple Bluetooth stack and replace it with the BTstack.

在继续之前,我们将再次强调您需要越狱的设备。 该黑客专门利用越狱设备关闭默认Apple蓝牙堆栈并将其替换为BTstack的功能。

安装BTstack GPS (Installing BTstack GPS)

2011-08-09_171642

Launch Cydia on your iOS device and use the store search function to search for BTstack GPS. By default you should have the BigBoss repository active, if not you’ll need to activate it by navigating to the main Cydia screen and clicking “More Package Sources”.

在iOS设备上启动Cydia,然后使用商店搜索功能搜索BTstack GPS。 默认情况下,您应该激活BigBoss存储库,否则,需要导航到Cydia主屏幕并单击“更多软件包源”来激活它。

2011-08-09_172205

Once you’ve located BTstack GPS install it (the application is $5 and you can pay using PayPal or Amazon Payments). If you’re not sure if you want to shell out $5 for the application you can download it as a demo. In demo mode you’ll be able to see if your GPS device will connect properly but BTstack GPS will not share the GPS information outside of the primary application.

找到BTstack GPS后,安装它(应用程序为5美元,您可以使用PayPal或Amazon Payments进行付款)。 如果不确定是否要为该应用程序支付5美元,可以作为演示下载​​。 在演示模式下,您将能够查看GPS设备是否可以正确连接,但BTstack GPS将不会在主要应用程序之外共享GPS信息。

After the application is installed hit up the Settings menu on your iOS device. You’ll want to do two things. First, look under the General Settings menu to make sure the native iOS Bluetooth is turned off. Second, look under the Extensions menu and click BTstack. BTstack, no iOS, should be checked.

安装应用程序后,在iOS设备上点击“设置”菜单。 您将需要做两件事。 首先,在“常规设置”菜单下查看以确保本机iOS蓝牙已关闭。 其次,在“扩展”菜单下查看,然后单击“ BTstack”。 BTstack,没有iOS,应进行检查。

安装Android蓝牙转发器 (Installing an Android Bluetooth Forwarder)

If you’re planning on using this technique with a stand-alone GPS device, you can skip right to pairing your devices—you may want to check your manual before jumping down to see the BTstack GPS pairing procedure. We’re using an Android phone as a GPS device and as such we need to get our Android phone to start broadcasting the GPS signal via Bluetooth.

如果您打算将此技术与独立GPS设备一起使用,则可以跳过与设备配对的权限-您可能需要先阅读手册,然后再跳下来查看BTstack GPS配对过程。 我们正在将Android手机用作GPS设备,因此,我们需要使Android手机开始通过蓝牙广播GPS信号。

Currently there are about a half dozen applications on the market that meet the needs of someone who wants to link their Android GPS chip to an external source via Bluetooth. It is apparent from the comments on the apps that many of them work or don’t work on a model-by-model basis. Consider yourself forewarned and be willing to try two or three before you find a perfect fit. We had luck with Bluetooth GPS, alternatively you may want to try out ShareGPS, Network/Bluetooth GPS, or Bluetooth GPS Output. Start with Bluetooth GPS and if it doesn’t work move on to trying the next ones. We wish it was more straight forward than that but this whole procedure is a bit unorthodox and most phone companies didn’t design their handsets with the idea that you’d be using the GPS off the phone.

当前,市场上大约有六种应用程序可以满足需要通过蓝牙将其Android GPS芯片链接到外部源的人的需求。 从对应用程序的评论中可以明显看出,它们中的许多功能在逐个模型的基础上都起作用或不起作用。 考虑一下自己已经被警告,并愿意尝试两到三个,然后再找到完美的匹配。 我们对蓝牙GPS感到很幸运,或者,您可能想尝试ShareGPS ,网络/蓝牙GPS或蓝牙GPS输出。 从蓝牙GPS开始,如果无法使用,请继续尝试下一个。 我们希望比这更直接,但是整个过程有点不合常规,并且大多数电话公司在设计手机时都不以为您会在手机上使用GPS。

配对设备 (Pairing Your Devices)

2011-08-09_174404

At this point your iOS device is using the alternative Bluetooth stack. Now it’s time to check out the actual GPS application paired with the BTstack. There should be a new icon on your springboard, simply labeled GPS. Click on that and you’ll see a very Spartan interface that simply lists the devices. On first launch is should say “Searching…” and if you have your Bluetooth device in discovery mode it will appear shortly. In the screenshot above you see our Android device after we scanned for available Bluetooth devices and the pairing prompt we sent the the iPad. In the screenshot below you see the result of that pairing prompt:

此时,您的iOS设备正在使用备用蓝牙堆栈。 现在是时候检查与BTstack配对的实际GPS应用程序了。 跳板上应该有一个新图标,简单标记为GPS。 单击该按钮,您将看到一个非常简单的Spartan界面,其中列出了设备。 首次启动时,应该说“正在搜索...”,如果您的蓝牙设备处于发现模式,它将很快出现。 在上面的屏幕截图中,我们在扫描可用的蓝牙设备后看到了我们的Android设备,并且我们发送了iPad的配对提示。 在下面的屏幕截图中,您会看到配对提示的结果:

2011-08-09_174904

Once you connect the two, BTstack should kick you over to the mapping screen. If it doesn’t just tap the name of the paired device in the device list. You should see something like the following:

将两者连接后,BTstack应该将您踢到映射屏幕。 如果不是,请在设备列表中点击已配对设备的名称。 您应该看到类似以下的内容:

2011-08-09_175047

After a few seconds the GPS signal will fully resolve and you’ll see additional information. If the connection does not resolve then you need to try out a different GPS application on your Android device or double check that your stand-alone GPS is capable of transmitting the coordinates.

几秒钟后,GPS信号将完全解决,您将看到更多信息。 如果连接无法解析,则需要在Android设备上尝试使用其他GPS应用程序,或者再次检查独立GPS是否能够传输坐标。

Once the resolution stage is finished can then fire up any application on your iOS device that is location-aware and it will use the new GPS coordinates provided by your external GPS unit. Success!

解析阶段完成后,可以启动iOS设备上所有可识别位置的应用程序,它将使用外部GPS单元提供的新GPS坐标。 成功!

翻译自: https://www.howtogeek.com/70134/how-to-use-an-external-gps-device-with-your-ipad-or-iphone/

ipad iphone开发

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.mzph.cn/news/279063.shtml

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

fc-ae-1553_什么是AE-L,AF-L和*按钮,它们的作用是什么?

fc-ae-1553DSLRs and mirrorless cameras have a lot of buttons. If you’re just starting to get the hang of manually controlling your camera, you’re probably wondering what all the—seemingly non-essential—ones do. Let’s take a look at the AE-L, AF-L, AF-…

大学留级两年不敢和家人说_您说什么:如何与家人保持联系?

大学留级两年不敢和家人说Earlier this week we asked you to share your tips, tricks, and techniques for staying connected when you’re away from your home broadband connection. Now we’re back with a roundup of what you said. 本周早些时候,我们要求…

DevExpress v17.2新版亮点—WinForms篇(四)

2019独角兽企业重金招聘Python工程师标准>>> DevExpress首推团队升级培训套包,最高可省10万元!查看详情>>> 用户界面套包DevExpress v17.2终于正式发布,本站将以连载的形式为大家介绍各版本新增内容。开篇介绍了DevExpre…

Solr 11 - Solr集群模式的部署(基于Solr 4.10.4搭建SolrCloud)

目录 1 SolrCloud结构说明2 环境的安装2.1 环境说明2.2 部署并启动ZooKeeper集群2.3 部署Solr单机服务2.4 添加Solr的索引库3 部署Solr集群服务(SolrCloud)3.1 启动ZooKeeper3.2 ZooKeeper管理配置文件3.3 修改SolrCloud监听端口3.4 关联Solr与ZooKeeper3.5 分发SolrCloud服务3…

matlab怎么画一箭穿心,MATLAB学习与使用:如何绘制三维心形图 经验告诉你该这样...

MATLAB是MATrix & LABoratory(矩阵实验室)的缩写,是一款强大的科学软件,具有编程、绘图、仿真等功能。利用MATLAB绘制一款三维的心形图,然后送给心爱的姑娘,也是理工男撩妹的一项小技能。工具/材料MATLAB三维心形图操作方法01…

mac重置系统_如何在Mac上重置打印系统

mac重置系统Printers are notorious for failing frequently. A quick restart of the printer or computer usually fixes most intermittent issues, but occasionally it’s best to reset your printing settings and reinstall the printer completely. Consider this a f…

COW奶牛!Copy On Write机制了解一下

前言 只有光头才能变强 在读《Redis设计与实现》关于哈希表扩容的时候,发现这么一段话: 执行BGSAVE命令或者BGREWRITEAOF命令的过程中,Redis需要创建当前服务器进程的子进程,而大多数操作系统都采用写时复制(copy-on-w…

windows 全局变量_如何在Windows中使用全局系统环境变量

windows 全局变量Any system administrator who spends a good bit of time in the command prompt or batch scripts is probably well aware of built in environment variables Windows offers (i.e. Path, WinDir, ProgramFiles, UserProfile, etc.). If you find yourself…

twitter api使用_使用P2创建自己的Twitter风格的组博客

twitter api使用Would you like a great way to post stuff quickly online and communicate with your readers? Here’s how you can use the P2 theme to transform WordPress into a great collaboration and communications platform. 您是否想以一种很好的方式在网上快…

10_30_unittest

1、断言 1)、self.assertEqual(2,res)#期望值qian、结果值hou2)TextTestRunner 源码 必要的参数3)测试结果 上下文管理器 with open("test.txt",w,encodingutf-8) as file:runner unittest.TextTestRunner(streamfile,verbosity2)…

laravel graphql php,结合 Laravel 初步学习 GraphQL

本文字数:7134,大概需要14.27分钟。按照官网所述的:A query language for your API一种用于 API 的查询语言GraphQL is a query language for APIs and a runtime for fulfilling those queries with your existing data. GraphQL provides a…

wi-fi共享大师免广告_如何保护Wi-Fi网络免受入侵

wi-fi共享大师免广告Insecure Wi-Fi is the easiest way for people to access your home network, leech your internet, and cause you serious headaches with more malicious behavior. Read on as we show you how to secure your home Wi-Fi network. 不安全的Wi-Fi是人们…

【材质】色彩基础

RBG颜色空间 目前,绝大部分显示器采用的是RGB颜色标准,因此几乎所有软件也采用此标准,UE4也不例外。 R、G、B这三个字母分别代表红色(red)、绿色(green)、蓝色(blue)三条…

使用mintty(_如何使用Mintty改善Cygwin控制台

使用mintty(Cygwin’s great for getting some Linux command-line goodness in Windows, but using the Windows Shell to access it kills some of that magic. Using Mintty and a few other methods, you can make the experience much more luxurious. Cygwin非常适合在Wi…

18.phpmyadmin 4.8.1 远程文件包含漏洞(CVE-2018-12613)

phpmyadmin 4.8.1 远程文件包含漏洞(CVE-2018-12613) phpMyAdmin是一套开源的、基于Web的MySQL数据库管理工具。其index.php中存在一处文件包含逻辑, 通过二次编码即可绕过检查,造成远程文件包含漏洞。 受影响版本: phpMyAdmin 4.…

关于“Python”的核心知识点整理大全38

14.1.1 创建 Button 类 由于Pygame没有内置创建按钮的方法,我们创建一个Button类,用于创建带标签的实心矩形。 你可以在游戏中使用这些代码来创建任何按钮。下面是Button类的第一部分,请将这个类保存为 文件button.py: button.py …

同步您的Google Chrome书签,主题等

Do you regularly use Google Chrome on multiple computers? Here’s how you can keep almost everything in your browser synced easily in Google Chrome. 您是否经常在多台计算机上使用Google Chrome? 您可以通过以下方法在Google Chrome浏览器中轻松同步浏…

找call写call_如何将Google Call Widget添加到任何网页

找call写callAdding a Google Call Widget to your website or blog allows visitors to contact you using your Google Voice number. The widget provides an easy and cost-effective way to provide live customer support without the customer knowing your real number…

XML与web开发-01- 在页面显示和 XML DOM 解析

前言: 关于 xml 特点和基础知识,可以菜鸟教程进行学习:http://www.runoob.com/xml/xml-tutorial.html 本系列笔记,主要介绍 xml 在 web 开发时需要了解的知识 XML 在页面显示数据 XML 指可扩展标记语言(eXtensible Mar…

酷安应用市场php源码,酷安应用市场 v11.0.3-999 去广告极限精简版

酷安,真实有趣的数码社区。酷安app,国内安卓应用市场客户端,应用资源丰富,应用开发者水准高,应用无首发Logo,原汁原味上架,得到了安卓用户群广泛认可。有人说现在的酷安市场(酷安网)没有以前那么…