![]() |
![]() |
|
Place Lab Laptop Stumbler HOWTO Table of ContentsIntroductionStumbling is the process of collecting traces of available beacons like 802.11 access points on a mobile device which is also connected to a GPS unit. The resulting log has timestamped GPS readings coupled with vectors of nearby beacons. PlacelabStumbler supports stumbling for wifi, bluetooth, and gsm in various configurations. You will find PlacelabStumblerGUI in the package org.placelab.stumbler.gui.InstallationRequired libraries
OS-specific instructionsInstructions for Linux (thanks to yu-chung)Permissions. Make sure /var/lock is group writable and your id is also in the same group of the serial device (eg /dev/ttyS0) and /var/lock. In RedHat/Fedora, add "uucp" and "lock" into your group in /etc/groups. Also you have to logout or exit the X window to make the permission change effective. If the permissions aren't set correctly, you might get "lock file denied" messages from rxtx. USB-Serial port converterIf you are using a usb-serial converter cable for the GPS, you need the usbserial kernel module. Ideally the module will auto load but if not you can use "modprobe usbserial" to install it manually.
Scanning mode support.If you run the stumbler but no beacons shows up, this is because some cards may not support scanning mode with default kernel/pcmcia module. For example, the orinoco card. Try "iwlist ethX scan" and see if it works. If not, you can download scanning patch from http://www.ozlabs.org/people/dgibson/dldwd/. On Fedora, you just need to download the tar ball, compile it and replace all related kernel module (ex *.ko) with current modules in /lib/modules. No need to reboot. For prism2 based-card, the host-ap driver support scanning and monitoring. You can find more info by Googling hostap. Instructions for Mac OSAdd yourself to the uucp group (and create uucp if it doesn't exist). Note that you will have to log out and back in to make the group change effective. Create the directory /var/spool/uucp and make sure that it is writable by members of uucp.Hooking up your gpsUse org.placelab.util.GPSEcho and pass to it a single argument the name for the serial device that you are using (like COM1 or /dev/serial0 and so on). The output from GPSEcho should be the raw NMEA data sent and it should look like this:using /dev/tty.USA19H1b1P1.1 It is also possible to use bluetooth gps devices. If you have windows xp sp2 set the system property placelab.gps_device=bluetooth and placelab.stumble_bluetooth=true (this can be done either with the -D switch on the command line or by placing it in your placelab.ini). PlacelabStumblerGUI will automatically detect and begin using your gps device. If it fails to connect to your device, try removing the device from your computer in the Bluetooth control panel. PlacelabStumblerGUI will automagically re-pair with the device. If you don't have windows xp sp2, you'll have to use a bluetooth virtual serial port utility. For mac os, you'll find that at /Applications/Utilities/Bluetooth Serial Utility.app. Some gps devices must be put into nmea mode before they will work. I just fiddle with them until I find the menu for it, but you may have more luck referring to the documentation for your gps device. Stumbling for bluetooth beacons (win xp sp2 only)If you are running Windows XP sp2 and have BlueCove properly installed PlacelabStumblerGUI will also search for bluetooth devices. You will see two tables, one for bluetooth and one for wifi if everything is set up right. The text PlacelabStumbler is not set up to stumble for bluetooth at this time. To enable bluetooth stumbling, set placelab.stumble_bluetooth=true (default is false for stability) and it will stumble for bluetooth. Note that automatic discovery of bluetooth gps devices requires that you also stumble for bluetooth.Stumbling for 802.11, bluetooth, and GSM (win xp sp2 + nokia series 60 phone only)If you have the placelab phone distribution successfully installed on your series 60 nokia phone, PlacelabStumblerGUI can use the phone to spot for gsm towers, and it will collate these measurements into its current log and display a table for the gsm towers seen.Note that if you are trying to stumble for GSM alone using only a phone (i.e. no laptop involved), you should read the Place Lab Phone Stumbler HOWTO Guide instead of this guide. Before doing anything, make sure you pair your phone with the computer you will be running PlacelabStumblerGUI on. To do this, press the menu button on the phone (blue button on the far left) and go to connect->bluetooth and click over to the "Paired Devices" tab. Click options, choose "New Paired Device" and select your computer (entering in the passcode on both the phone and computer if necessary) Once you have the pairing set up, select the computer in the pairing tab on the phone and in the options menu choose "Set as authorised" Now navigate back to the phone's launcher menu and start the Placelab application (if its not already running) to start the GSM spotter on the phone. Leave that running and go start "GSMBT" (answer yes to both questions it asks). Once GSMBT starts up it will display some statistics on the number of gsm towers seen and it will also display the bluetooth id and channel the program is listening on. Launch PlacelabStumblerGUI with the system property placelab.cellphone set to that id and channel (it will be of the form xxxxxxxxxxxx:x where the last x is the channel) and gsm stumbling will be enabled. Transferring the data to a PC for uploading to placelab.org is the last step in GSM stumbling. The LogUploadProxy tool transfers stumbler logs from the phone to the PC ready for uploading to placelab.org. The bytes that are received are in compressed format which the proxy decompresses before uploading. More information on transferring data from the phone can be found in the Phone Bluethooth Transfer HOWTO. Command line options and system propertiesSystem PropertiesThese may be set either by editing your placelab.ini or on the command line with-D
Command line options
|