wiki:WIMXUWI/GPS_Script

Version 5 (modified by dmeyer@cs.wisc.edu, 8 years ago) (diff)

--

Getting Measurements While Driving for the 6250 in Linux

Required Packages

Directions for 6250

I am using a USB GPS dongle and the required packages for it are gpsd and its dependencies. For the python script to be able to communicate with gpsd, we will need the python-gps package as well. The names of the data files created use the current date and time, so as the current file stands, we will need the dateutil python package also.

sudo apt-get install gpsd python-gps python-dateutil

Script Configuration

Next you should open the script in a text editor and look at the global variable and constants. There are options to execute scans for the RSSI values and/or iperf tests. The output to those tests are put in separate directories under the file names based on the current date and time. As it stands, these are the current variables and Constants:

#----------------------------------------------------------------------
# Global Variables / Constants
#----------------------------------------------------------------------

# Global debug to output console
DEBUG = True

# Global to write the date and column headers
WRITE_FILE_HEADER = True

# Automatically connect even when disconnected
AUTO_CONNECT = True

# Global for which data set to get
RUN_RSSI = True 
RUN_IPERF = False

# Pause through loop
PRESS_ANY_KEY = False
TWO_SECOND_WAIT = False

# Directory constants
RSSI_DIRECTORY = "./rssi/"
MBPS_DIRECTORY = "./mbps/"
CREATE_DIRS_IF_NOT_EXIST = False

# wimaxcu constants
SCAN_RSSI_STRING = "RSSI        : "
STATUS_LINK_RSSI_STRING = "RSSI      : "

# Iperf server
IPERF_SERVER = "iperf.wiscnet.net"

Script Execution

From a command line:

python gpsData.py

Attachments (2)

Download all attachments as: .zip