TomTom to work on Linux and Kismet

by Zebedee on Aug.04, 2008, under Hacking, Wireless

I have for a while known how to war drive but did not want to go out and buy a special GPS unit to be able to when I have a Tom Tom sitting on the shelf doing basically the same just not willing to pass on the details to my PC.

The problem is I like to much info and get my self bogged down in making it work perfectly. This usually means not just finding the networks using kismet but logging it and displaying it on a map. So after a lot of research and hacking around I have finally written up all the info in one place so others can use it. Obviously this is just my research and how I got it working on my machine (Dell Latitude D630 running Open Suse 10.3) and if you follow my instructions I am no way responsible for the outcome.

Backup up anything that you do not want lost.

First you need to set up your TomTom to send your PC the GPS reciever info. To do this you will need to install a small RFCOMM program from http://www.ilpiola.it/roberto/tomtom on to the TomTom.

Unzip this and put the files on the root of your TomTom’s SD card (Obviously back this up first). Restart your Tom Tom and go through the menu until you see the Start BT Network. Once you have pressed this it will go to a black screen with your TomTom’s MAC address. Note this down then press OK. After a moment the next screen will appear, this screen will tell you what channels are listening and what services on these channels.

Once you are on this screen you will need to type the commands below to connect the PC to the TomTom.

rfcomm connect /dev/rfcomm1 XX:XX:XX:XX:XX:XX 1
rfcomm connect /dev/rfcomm2 XX:XX:XX:XX:XX:XX 2

Where the XX’s are replace with your TomTom’s MAC

rfcomm1 is the main one so you can have GPSData sent to your pc.
rfcomm2 is the tty line so you can console on to the TomTom direct.

Now that you have the PC and TomTom connected you now have to set up Kismet. To install Kismet the best place is the Kismet website or your distro’s packet manager. I used Suse’s YaST and just searched for Kismet and installed easy as =).

Once it is installed you will need to edit the kismet.conf file. this should be found under /etc/kismet.conf. Follow the instructions to install the rest of Kismet the important part for this set up is to go to the “# Do we have a GPS?” section. In this section you will need to enter gps=true then gpshost=localhost:2947 and leave gpsmodelock false. as you can see by the config file this fixes a number of things. I will not explain how to set the rest of Kismet up as there are hundreds of sites telling you how to do this and the Kismet instructions them selves are clear enough.

Once you have installed this you will need to make sure that gpsd is installed. I found GPSDrive in YaST and that had it built in so installed it.

To get gpsd started type

gpsd -s 4800 -d localhost -r 2947 -p /dev/rfcomm1

to test, type telnet localhost 2947 once connected type ‘r’ and then return. If working you will get lots of GPS data scrolling up.

OK, Time to start Kismet. Make sure that your gpsd has started and GPS data is flowing.

type kismet and at the bottom you will see the latatude and longatude and also the altitude if you are lucky and have more than four satalites.

Now you have got the kismet log files there I wanted to display my Wireless Networks on maps on Google maps and Google Earth

Download this python script at http://pykismetearth.googlepages.com/ save this in the folder where your kismet logs are (usually in /home/user/) now you can run the following command

python pykismetearth.py Kismet-xxx-xx-200x

obviously change the x’s for the correct file name.

Once this script has run you will have a file called  Kismet-xxx-xx-200x.kcl. Open this in Google Earth and watch the route you just took unfold with all the details of all the AP’s in your area. There are a number of different ways to export to Google Earth files but I found this to be the best with out re-writting it myself.

Source of info during research

http://www.kismetwireless.net/
http://safle.org/wordpress/2006/11/06/tomtom-one-and-gnu-linux.html
http://www.ilpiola.it/roberto/tomtom
http://www.i-hacked.com/content/view/99/42/
http://gpsd.berlios.de/
http://pykismetearth.googlepages.com/

:, , , , , ,
3 comments for this entry:
  1. sweety

    nice hacks really awesome site

  2. icantguide

    how do i issue the kill command? My device is stuck in BT connection mode.
    Also your gpsd command is all wrong go back and try to use it, some of those arguments don’t even exist.
    I advise people to NOT use this guide as the poster must have taken it from some other website because he clearly has not tried it himself.

  3. Zebedee

    Hi icantguide,

    I’m sorry you feel this way about my little tutorial. I have not got Suse installed any more so could not check the GPSD flags in that OS but they have changed on Ubuntu as most option have been depreciated. I got these commands from one of the sites I referenced at the bottom of my article.

    As for the BT Connection mode you will need to create a serial connection on to your Tom Tom and kill the correct process. I believe this was in the README of Roberto Piola’s download.

    HTH,

Leave a Reply

 

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!

Visit our friends!

A few highly recommended friends...