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.pswp.cn/news/279063.shtml
繁體地址,請注明出處:http://hk.pswp.cn/news/279063.shtml
英文地址,請注明出處:http://en.pswp.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)…