How to share the GPS in your N95 with your laptop via Bluetooth in Linux如何分享全球定位系统在您的N95型与你的笔记本电脑通过蓝牙在Linux

by Ken Murray on October 22, 2008 肯穆雷 2008年一十零月22日

Linux操作系统Symbian的

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操作系统。

  1. 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.下面下载。
  2. 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.选择两个。

  3. 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.该卫星将改变图标由红色变为绿色,一旦有一个修补程序。
  4. Make sure your phone is discoverable via Bluetooth.请确认您的手机通过蓝牙发现。 Choose Menu -> Tools -> Bluetooth .选择菜单 -> “工具” - >蓝牙。 I chose to make my phone visible for 5 minutes.我选择,使我的手机上看到的5分钟。


  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

  6. 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页

  7. 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 。
  8. 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应该改变由红色变为绿色。

  9. 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男子网页,以获得更多的选择。

  10. Now, from a second terminal window, try running xgps.现在,从第二个终端窗口,尝试在运行xgps 。

    [user@radon ~]$ xgps [用户@氡〜 ] $ xgps

    You should see something similar to the following:您应该会看到类似以下内容:


  11. click to enlarge点击放大

  12. xgps is showing the usual GPS data. xgps显示通常的GPS数据。 Latitude, Longitude, Altitude, Speed, etc.经纬度,高度,速度等
  13. 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 。
Related Posts: 相关文章:
  • How to share files and folders between Windows and OS X using Parallels如何共享文件和文件夹的Windows和OS X的使用Parallels公司
  • Use Adeona to help recover a lost or stolen laptop使用Adeona ,以帮助恢复丢失或被盗的笔记本电脑
  • Technology and Lifestyle技术和生活方式
  • How to install applications on your Nokia N95 via Bluetooth如何安装应用程序在您的诺基亚N95通过蓝牙
  • How to tether your Nokia N95s Internet connection to your laptop via Bluetooth in Linux如何系绳诺基亚N95s您的Internet连接到您的膝上型电脑通过蓝牙在Linux
  • Get Simple Help tutorials just like this one in your email inbox every day - for free!获取简单的帮助教程就这样一个在您的电子邮件收件匣每一天-是免费的! Just enter your email address below:只要输入您的电子邮件地址如下:

    You can always opt out of this email subscription at any time.您可以随时退出这个邮件订阅在任何时候。


    Bookmark and Share 书签和共享

    { 0 comments… 0评论... add one now现在添加一个 }

    Leave a Comment发表您的评论

    You can use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> 您可以使用这些HTML标记和属性: href="" title="">的<a <abbr title=""> <acronym title="">的<b> <blockquote cite=""> <cite>的<code> <del datetime="">的<em> <i> <q cite=""> <strike>的<strong>