Hoe te om GPS te delen in uw N95 met uw laptop via Bluetooth in Linux

door Ken Murray op 22 oktober, 2008

Linux Symbian

Dit leerprogramma zal u door de stappen begeleiden die worden vereist om uw Nokia N95s te delen dat in GPS met uw laptop, in Linux wordt gebouwd.

  1. Eerst moet u een exemplaar van grijpen ExtGPS. Symarctic ExtGPS is vrij voor persoonlijk, niet-commercieel gebruik. U gebruikt ook Mobiele Code om het hieronder te downloaden.
  2. Nu u geïnstalleerden ExtGPS hebt, kunt u het vinden door te kiezen Menu -> Toepassingen -> ExtGPS. U zal worden ertoe aangezet om ExtGPS toe te staan om connectiviteitstoepassingen te gebruiken en ExtGPS toe te staan om plaatsende gegevens te gebruiken. Kies Ja voor allebei.

  3. Het kan een tijdje vóór het GPS begin vrij nemen om een geldig signaal te ontvangen en een moeilijke situatie te krijgen. Zorg ervoor u buiten bent en een duidelijke mening van de hemel hebt. Het satellietpictogram zal van rood tot groen veranderen zodra het een moeilijke situatie heeft.
  4. Zorg ervoor uw telefoon via Bluetooth te ontdekken is. Kies Menu -> Hulpmiddelen -> Bluetooth. Ik verkoos om mijn telefoon 5 minuten zichtbaar te maken.


  5. De volgende stappen worden gedaan van de bevellijn. Hier is wat ik op mijn Fedora 9 systeem moest doen.

    [user@radon ~] $ sdptool onderzoek SP
    Het onderzoeken…
    Het zoeken naar SP op aa: BB: CC: dd: EE: FF…
    De Naam van de dienst: De Overdracht van gegevens
    De Beschrijving van de dienst: Versie
    De dienst RecHandle: 0×1000f
    Van de Klasse van de dienst identiteitskaart- Lijst:
    „Periodieke Haven“ (0×1101)
    De Lijst van de Beschrijver van het protocol:
    „L2CAP“ (0×0100)

    De Naam van de dienst: Symarctic ExtGPS
    De Beschrijving van de dienst: Ingebouwde GPS van de telefoon van het aandeel module via Bluetooth
    Dienstverlener: De Oplossingen van Symarctic
    De dienst RecHandle: 0×10019
    Van de Klasse van de dienst identiteitskaart- Lijst:
    „Periodieke Haven“ (0×1101)
    De Lijst van de Beschrijver van het protocol:
    „L2CAP“ (0×0100)
    „RFCOMM“ (0×0003)
    Kanaal: 5
    De Lijst van Attr van de Basis van de taal:
    code_ISO639: 0×656e
    het coderen: 0×6a
    base_offset: 0×100

  6. De bovengenoemde output toont uw adres van MAC van telefoonsBluetooth, en dat ExtGPS stelt een periodieke haven op Kanaal 5 bloot. Wij moeten deze samenbinden om een ingang in /dev te maken.

    [user@radon ~] $ sudo rfcomm bindt 1 aa: BB: CC: dd: EE: FF 5

  7. Rfcomm bindt paramaters hierboven is het aantal van het rfcommapparaat, het adres van MAC van Bluetooth van de telefoon, en het kanaalaantal zoals die door sdptool wordt gerapporteerd. Dit leidt tot een periodieke haven in /dev/rfcomm1.
  8. Op dit punt zou u ruwe zinnen NMEA van uw N95 aan de console moeten kunnen rechtstreeks stromen:

    [user@radon ~] $ sudo kat /dev/rfcomm1
    $GPGGA, 022314.000, 4826.67566, N, 12322.19605, W, 1,07,1.9, 13.7, M, - 18.3, M, *52
    $GPGLL, 4826.67566, N, 12322.19605, W, 022314.000, A, A*4A
    $GPGSA, A, 3.30.29.10.21.24.26.15, 2.9, 1.9, 2.2*3D
    $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,2,11,10,42,059,36,16,24,315,27,21,45,256,43,24,84,024,40*79
    $GPGSV, 3.3.11.18.14.198, 26,10,114,38,15,09,128,33*49
    $GPRMC, 022314.000, A, 4826.67566, N, 12322.19605, W, 0.1, 159.6, 151008,18.1, W, A*3B
    $GPVTG,159.6,T,177.7,M,0.1,N,0.3,K,A*2C
    ^C

    While the NMEA sentences are streaming to the console, the Bluetooth icon in ExtGPS should change from red to green.

  9. We’re now connected so let’s do something a bit more useful. First, let’s run gpsd on the computer.

    [user@radon ~]$ sudo /usr/sbin/gpsd -N /dev/rfcomm1

    The -N paramater tells gpsd not to switch to background mode. I prefer doing it this way as I don’t leave gpsd running all the time. I only run it when I want to use it, then just hit ^C to close it. See the gpsd man page for more options.

  10. Now, from a second terminal window, try running xgps.

    [user@radon ~]$ xgps

    You should see something similar to the following:


  11. click to enlarge

  12. xgps is showing the usual GPS data. Latitude, Longitude, Altitude, Speed, etc.
  13. There are a number of applications available in Linux that can take advantage of a GPS device. I like using a combination of Kismet and GPSDrive while wardriving. If there is enough interest, I’ll write a tutorial on how I wardrive with Kismet and GPSDrive.
Related Posts:
  • Use Adeona to help recover a lost or stolen laptop
  • How to share files and folders between Windows and OS X using Parallels
  • Technology and Lifestyle
  • How to install applications on your Nokia N95 via Bluetooth
  • How to tether your Nokia N95s Internet connection to your laptop via Bluetooth in 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… 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>