Changes between Version 10 and Version 11 of WIMXUWI/GPS_Script
- Timestamp:
- 07/22/11 15:42:25 (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
WIMXUWI/GPS_Script
v10 v11 16 16 == Script Configuration == 17 17 18 Next you should open the script in a text editor and look at the global variable andconstants. 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:18 Next you should open the config.py file in a text editor and look at the global variable/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: 19 19 20 20 {{{ … … 22 22 #---------------------------------------------------------------------- 23 23 # Global Variables / Constants 24 #---------------------------------------------------------------------- 25 24 #---------------------------------------------------------------------- 25 26 26 # Global debug to output console 27 27 DEBUG = True 28 29 # Select internet connection - Function debug mode 30 USE_WIRED_CONNECTION = False 31 USE_WIFI_CONNECTION = False 32 USE_WIMAX_CONNECTION = True 33 34 # Automatically connect even when disconnected 35 AUTO_CONNECT = True 28 36 29 37 # Global to write the date and column headers 30 38 WRITE_FILE_HEADER = True 31 39 32 # Automatically connect even when disconnected33 AUTO_CONNECT = True34 35 40 # Global for which data set to get 36 41 RUN_RSSI = True 37 RUN_IPERF = False 42 RUN_IPERF = False 43 RUN_PING = True 44 RUN_DOWNLOAD = False 45 GET_LOCATION = True 38 46 39 47 # Pause through loop … … 42 50 # Directory constants - The name of the file is the date and time 43 51 RSSI_DIRECTORY = "./rssi/" 44 MBPS_DIRECTORY = "./mbps/" 45 CREATE_DIRS_IF_NOT_EXIST = False 46 47 # wimaxcu constants 48 SCAN_RSSI_STRING = "RSSI : " 49 STATUS_LINK_RSSI_STRING = "RSSI : " 52 IPERF_DIRECTORY = "./iperf/" 53 WGET_DIRECTORY = "./wget/" 54 PING_DIRECTORY = "./ping/" 55 CREATE_DIRS_IF_NOT_EXIST = True 50 56 51 57 # Iperf server 52 58 IPERF_SERVER = "iperf.wiscnet.net" 59 60 # Running a wget comand, the file to download 61 WGET_FILENAME = "1Mtestfile.img" 62 WGET_FILE_URL = "www.cs.wisc.edu/~dmeyer/" + WGET_FILENAME 63 PING_URL = "128.105.22.11" 53 64 }}} 54 65 … … 63 74 Open a command line and cd to the directory of the script and type: 64 75 {{{ 65 python gpsData.py76 python main.py 66 77 }}} 67 78