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,一经查实,立即删除!

相关文章

jQuery系列(十四):jQuery中的ajax

1、什么是ajax AJAX 异步的javascript和XML(Asynchronous Javascript and XML) 简言之,在不重载整个网页的情况下,AJAX通过后台加载数据,并在网页上进行显示。 通过 jQuery AJAX 方法,您能够使用 HTTP Get…

flex 布局以及样式

1.Flex是Flexible Box的缩写,意为”弹性布局”,用来为盒状模型提供最大的灵活性2.任何一个容器都可以用flex布局(注意,设为Flex布局以后,子元素的float、clear和vertical-align属性将失效) 采用Flex布局的元…

java swing列表数据加监听,【Java Swing公开课|Java监听列表项选择事件怎么用,看完这篇文章你一定就会了】- 环球网校...

【摘要】作为一门面向对象编程语言,Java吸收了C语言的优点,也展现了其强大的一面,我们能在各个地方看到其功能强大和简单易用的两个特征,当然,也吸引了很多程序员的注意力,所以就有人想了解Java的相关内容&…

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-…

PopsTabView--filter容器

PopsTabView是个filter容器,他可以自动,快速,构建不同筛选样式,自由组合成一组tab. DownloadDownloadAuthorLicense筛选样式筛选种类可自定义属性单列单选,多选初始数据bean,筛选结果bean,tab样式,筛选样式多排单选,多选初始数据bean,筛选结果beantab样式,筛选样式双列单项单选…

git 基本使用方法

git clone https://gitee.com/kuaiyiwazz.git //开始下载服务器项目文件(后边是服务地项目的地址)git add . //这里有个点(仔细看)git status //检查项目修改状态git commit -m"注释(修改的内容)" git push //添…

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

大学留级两年不敢和家人说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…

参数回调

1.场景 参数回调方式与调用本地 callback 或 listener 相同,只需要在 Spring 的配置文件中声明哪个参数是 callback 类型即可。 Dubbo 将基于长连接生成反向代理,这样就可以从服务器端调用客户端逻辑 2.

matlab胡良剑第五章,MATLAB习题参考答案(胡良剑,孙晓君)

MATLAB习题参考答案第一章 MATLAB入门4、求近似解解:>> x-2:0.05:2;yx.^4-2.^x两个近似解:y1f(-0.85) -0.0328; y2f(1.250) 0.0630第二章 MATLAB编程与作图1、 设x是数组,求均值和方差 解:函数文件如下:function…

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…

Day2-T1

原题目 Describe&#xff1a;贪心&#xff0c;左边和右边中选字典序小的 code&#xff1a; #include<bits/stdc.h> using namespace std; int n,step,head,tail; char p[50005]; int main() {freopen("bcl.in","r",stdin);freopen("bcl.out&quo…

hadoop编译java,Hadoop源码编译(2.4.1)

背景Hadoop 2.4.1预编译版本自带的libhadoop.so是在32位机器上编译上,导致在64位OS上运行时&#xff0c;总出现如下告警&#xff1a;WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable查看…

C# System.Windows.Forms.NumericUpDown 控件全选其中文字

num_length.Focus(); UpDownBase updbText (UpDownBase)num_length; num_length.Select(0, updbText.Text.Length);转载于:https://www.cnblogs.com/LuoEast/p/7942476.html

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&#xff09;、self.assertEqual(2,res)#期望值qian、结果值hou2&#xff09;TextTestRunner 源码 必要的参数3&#xff09;测试结果 上下文管理器 with open("test.txt",w,encodingutf-8) as file:runner unittest.TextTestRunner(streamfile,verbosity2)…