This tutorial will guide you through the steps required to share your Nokia N95s built in GPS with your laptop, in Linux.本教程將引導您完成所需的步驟分享您的諾基亞N95s內置在GPS與您的筆記本電腦,在Linux操作系統。
- First you need to grab a copy of首先您需要抓住的副本 ExtGPS . 。 Symarctic ExtGPS is free for personal, non-commercial use. Symarctic ExtGPS是免費的個人,非商業用途。 You also use the您還可以使用 Mobile Code移動代碼 below to download it.下面下載。
- Now that you have ExtGPS installed, you can find it by choosing Menu -> Applications -> ExtGPS .現在您已經ExtGPS安裝,您可以找到它通過選擇菜單 -> “應用程序- >” E x tGPS。 You will be prompted to allow ExtGPS to use connectivity applications and to allow ExtGPS to use positioning data.將提示您允許ExtGPS使用連接應用,並允許ExtGPS使用定位數據。 Choose Yes for both.選擇有兩個。
- It may take quite a while before the GPS starts to receive a valid signal and get a fix.這可能需要相當長的一段時間之前,全球定位系統開始收到有效的信號,並獲得解決。 Make sure you are outside and have a clear view of the sky.請確保您已外面有一個明確的空中視野。 The satellite icon will change from red to green once it has a fix.該衛星將改變圖標由紅色變為綠色,一旦有一個修補程序。
- Make sure your phone is discoverable via Bluetooth.請確認您的手機通過藍牙發現。 Choose Menu -> Tools -> Bluetooth .選擇菜單 -> “工具” - >藍牙。 I chose to make my phone visible for 5 minutes.我選擇,使我的手機上看到的5分鐘。
- The next few steps are done from the command line.下幾個步驟完成的命令行。 Here’s what I had to do on my Fedora 9 system.以下是我不得不這樣對我的Fedora 9日制度。
[user@radon ~]$ sdptool search SP [用戶@氡〜 ] $ sdptool搜索螺
Inquiring …探究...
Searching for SP on aa:bb:cc:dd:ee:ff … 尋找SP在機管局:貝爾:抄送:日:李:頁...
Service Name: Data Transfer服務名稱:數據傳輸
Service Description: Version服務說明:版本
Service RecHandle: 0×1000f服務RecHandle : 0 × 1000f
Service Class ID List:服務類ID列表:
“Serial Port” (0×1101) “串行端口” ( 0 × 1101 )
Protocol Descriptor List:議定書描述名單:
“L2CAP” (0×0100) “ L2CAP ” ( 0 × 0100 )Service Name: Symarctic ExtGPS服務名稱: Symarctic ExtGPS
Service Description: Share phone’s built-in GPS module via Bluetooth服務說明:共享手機內置GPS模塊通過藍牙
Service Provider: Symarctic Solutions服務提供商: Symarctic解決方案
Service RecHandle: 0×10019服務RecHandle : 0 × 10019
Service Class ID List:服務類ID列表:
“Serial Port” (0×1101) “串行端口” ( 0 × 1101 )
Protocol Descriptor List:議定書描述名單:
“L2CAP” (0×0100) “ L2CAP ” ( 0 × 0100 )
“RFCOMM” (0×0003) “ RFCOMM ” ( 0 × 0003 )
Channel: 5 頻道: 5
Language Base Attr List:語言基礎屬性清單:
code_ISO639: 0×656e code_ISO639 : 0 × 656e
encoding: 0×6a編碼: 0 × 6a的
base_offset: 0×100 base_offset : 0 × 100 - The above output shows your phones Bluetooth MAC address, and that ExtGPS is exposing a serial port on Channel 5.上述輸出顯示您的手機藍牙MAC地址,並ExtGPS是暴露了串行端口通道5 。 We need to bind these together to make an entry in /dev.我們必須結合這些合作,使一個項目中的/ dev 。
[user@radon ~]$ sudo rfcomm bind 1 aa:bb:cc:dd:ee:ff 5 [用戶@氡〜 ] $須藤rfcomm約束一日機管局:貝爾:抄送:日:李:第5頁
- The rfcomm bind paramaters above are the rfcomm device number, the phone’s Bluetooth MAC address, and the channel number as reported by sdptool. rfcomm綁定的參數以上的rfcomm設備號碼,手機的藍牙MAC地址,以及一些渠道所報告sdptool 。 This creates a serial port at /dev/rfcomm1.這將創建一個串行端口在/ dev/rfcomm1 。
- At this point you should be able to stream raw NMEA sentences from your N95 directly to the console:在這一點上您應該能夠流原料NMEA句子從您的N95型直接到控制台:
[user@radon ~]$ sudo cat /dev/rfcomm1 [用戶@氡〜 ] $須藤貓/ dev/rfcomm1
$GPGGA,022314.000,4826.67566,N,12322.19605,W,1,07,1.9,13.7,M,-18.3,M,,*52 $ GPGGA , 022314.000,4826.67566 ,氮, 12322.19605 ,鎢1,07,1.9,13.7 ,男, -18.3 ,男, , * 52
$GPGLL,4826.67566,N,12322.19605,W,022314.000,A,A*4A $ GPGLL , 4826.67566 ,氮, 12322.19605 ,三, 022314.000 ,一個一個* 4A條
$GPGSA,A,3,30,29,10,21,24,26,15,,,,,,2.9,1.9,2.2*3D $ GPGSA的A , 3,30,29,10,21,24,26,15 ,,,,,, 2.9,1.9,2.2 *三維
$GPGST,022314.000,8.8,13.0,6.1,65.6,7.1,11.1,14.0*63 $ GPGST , 022314.000,8.8,13.0,6.1,65.6,7.1,11.1,14.0 * 63
$GPGSV,3,1,11,05,09,179,,02,10,072,25,30,28,194,38,29,77,118,42*72 $ GPGSV , 3,1,11,05,09179 , , 02,10072,25,30,28194,38,29,77118,42 * 72
$GPGSV,3,2,11,10,42,059,36,16,24,315,27,21,45,256,43,24,84,024,40*79 $ GPGSV , 3,2,11,10,42059,36,16,24315,27,21,45256,43,24,84024,40 * 79
$GPGSV,3,3,11,18,14,198,,26,10,114,38,15,09,128,33*49 $ GPGSV , 3,3,11,18,14198 , , 26,10114,38,15,09128,33 * 49
$GPRMC,022314.000,A,4826.67566,N,12322.19605,W,0.1,159.6,151008,18.1,W,A*3B $ GPRMC , 022314.000的A , 4826.67566 ,氮, 12322.19605 ,鎢0.1,159.6,151008,18.1 ,三, A *的三號乙
$GPVTG,159.6,T,177.7,M,0.1,N,0.3,K,A*2C $ GPVTG , 159.6 , Ť , 177.7 ,男, 0.1 ,氮, 0.3 ,鉀, A *的2C型
^C ^ çWhile the NMEA sentences are streaming to the console, the Bluetooth icon in ExtGPS should change from red to green.雖然NMEA句子流控制台,藍牙圖標ExtGPS應該改變由紅色變為綠色。
- We’re now connected so let’s do something a bit more useful.我們現在連所以讓我們做點更有用。 First, let’s run gpsd on the computer.首先,讓我們gpsd運行的計算機上。
[user@radon ~]$ sudo /usr/sbin/gpsd -N /dev/rfcomm1 [用戶@氡〜 ] $須藤是/ usr / sbin / gpsd氮/ dev/rfcomm1
The -N paramater tells gpsd not to switch to background mode.在氮參數告訴gpsd不切換到背景模式。 I prefer doing it this way as I don’t leave gpsd running all the time.我喜歡做這樣的我不離開gpsd運行的所有時間。 I only run it when I want to use it, then just hit ^C to close it.我只能運行它時,我想使用它,然後只需點擊^ C以關閉它。 See the gpsd man page for more options.見gpsd男子網頁,以獲得更多的選擇。
- Now, from a second terminal window, try running xgps.現在,從第二個終端窗口,嘗試在運行xgps 。
[user@radon ~]$ xgps [用戶@氡〜 ] $ xgps
You should see something similar to the following:您應該會看到類似以下內容:
- xgps is showing the usual GPS data. xgps顯示通常的GPS數據。 Latitude, Longitude, Altitude, Speed, etc.經緯度,高度,速度等
- There are a number of applications available in Linux that can take advantage of a GPS device.有一些應用軟件在Linux中,可以利用全球定位系統裝置。 I like using a combination of Kismet and GPSDrive while wardriving.我喜歡使用相結合的Kismet和GPSDrive而駕駛攻擊。 If there is enough interest, I’ll write a tutorial on how I wardrive with Kismet and GPSDrive.如果有足夠的興趣,我會寫教程上我怎麼wardrive與Kismet和GPSDrive 。



































{ 0 comments… ( 0評論... add one now現在添加一個 } )
Leave a Comment發表您的評論