// Copyright (c) 2011 Rx Networks, Inc. All rights reserved.
//
// Property of Rx Networks
// Proprietary and Confidential
// Do NOT distribute
// 
// Any use, distribution, or copying of this document requires a 
// license agreement with Rx Networks. 
// Any product development based on the contents of this document 
// requires a license agreement with Rx Networks. 
// If you have received this document in error, please notify the 
// sender immediately by telephone and email, delete the original 
// document from your electronic files, and destroy any printed 
// versions.
//
// This file contains sample configuration data only and the data carries no 
// warranty whatsoever.
//
//
// SAGPS and PGPS Mobile Suite Configuration Parameter Storage File.
//
// Preceed comments with "//".
// Max line length is 256 chars (including terminators).
// All parameters must be delimited by <ParamName>: <Param> (note the space between the ':' and <Param>)
// <ParamName> must be a single word without spaces.
// <Param> may be a string or data value (convertable to double) and must be terminated by ' ', '\r' or '\n'.
// <Param> values will be internally clamped to the min value specified (if below this min value).
// <Param> values will be internally clamped to the max value specified (if above this max value).

// -----------------------
// Common Elements
// -----------------------

// Config File Version. Value is string.
Config_File_Ver: 1.10.0

// Reference GPS Week used to determine GPS week roll over (%1024)
Base_GPS_Week: 570

// Max Log Filesize in kB. Set to ensure that the MSL log does not take up too much file system space.
// Value in kB. Min value: 1. Max value: 1048576 (1GB). Default value: 102400 (102400kB = 100 MB). Logging is disabled once
// maximum file size is reached.
Log_Max_Size: 4096

// Logging severity threshold. Set to match a severity to ensure that log entries labeled with this severity (or lower) are
// included within your log (default 1 - Errors). Severity levels follow:
// 0 - Fatal: Unrecoverable failure from which system is in indeterminate state, unwise to proceed.
// 1 - Errors: Recoverable errors, program can continue.
// 2 - Warnings: Not as serious as errors.
// 3 - Information: Useful data regarding flow of the code.
// 4 - Trace: Supports RxN internal debugging only.
// Min value: 0. Max Value 4. Default value: 1.
Log_Sev_Threshold: 3

// Log zone mask. Log entries can be separated by zone (in addition to severity). Only if log entries with specified
// zone match up with the mask provided below will these entries be logged (regardless of severity).
// Zones follow:
// Zone 1 (0x0001)  Misc functions (catch all).
// Zone 2 (0x0002)  Third Party log entry.
// Zone 3 (0x0004)  Init/Shutdown functions.
// Zone 4 (0x0008)  Serial Port I/O functions.
// Zone 5 (0x0010)  File I/O functions.
// Zones 6 - 16 - Reserved for future or RxN internal use.
// Note there are no min or max values and Default mask value: 0xFFFF.
Log_Zone_Mask: 0xFFFF

// Vendor ID. Rx Networks will provide a vendor ID to each customer to support licensing and access to PGPS seeds
// and clock updates.
// A default developer vendor ID that is used for evaluation purposes is "evaluation".
Vendor_ID: gr7apkBg

// License Key file path. Path to the RxN license key file that is used to support evaluation or licensed product use.
// Note that the path is typically relative but can be explicit from file system root. Max path is 512 chars.
// Default behaviour is to have the key file adjacent to the executable that uses the MSL library (./license.key)
Lic_Key_Path: /system/etc/gps/RXN/license.key

// CL Log file path. Path to the Chipset Library Log file.
// Note that the path is typically relative but can be explicit from file system root. Max path is 512 chars.
// Default path ./CL_Log.txt will be used if missing
CL_Log_Path: /data/RXN/CL_Log.txt

// MSL Log file path. Path to the Mobile Suite Library Log file.
// Note that the path is typically relative but can be explicit from file system root. Max path is 512 chars.
// Default path ./MSL_Log.txt will be used if missing
MSL_Log_Path: /data/RXN/MSL_Log.txt

// CL configuration string.
// The configuration string used to connect to the GPS receiver. The contents are chipset-dependent. 
// Note that max length is 512 chars.
// e.g.: CL_Config_Str: P:COM1:|B:115200|s:4|Z:FFF7
// e.g.: CL_Config_Str: IP:127.0.0.1|In:1235|Out:1234|Prst:/etc/RXN/ClkOff|S:04|Z:0xFFFF
// CL_Config_Str: ./RINEX_OUT.txt|w+
// CL_Config_Str: ServerIP:192.168.63.112|MsBased:1|S:04|Z:0xFFFF
// CL_Config_Str: ServerIP:127.0.0.1|MsBased:1|SkipStart:1|S:04|Z:0xFFFF
CL_Config_Str: ServerIP:127.0.0.1|MsBased:1|SkipStart:1|S:04|Z:0xFFFF|UpdateBCE:0|RegGPSTime:1|useUNIX:1

// Pantry file path. Path to the PGPS local data store.
// The following folders will be created under it: pred and eph 
// Note that the path is typically relative but can be explicit from file system root. Max path is 512 chars.
// Default path ./RXN will be used if missing
Pantry_Path: /data/RXN/RXN

// How long extended ephemeris should be used before being replaced by broadcast ephemeris.
// Value in sec. Min value: 0, Max value: 14400. Default 300.
TOE_Eph_Dur: 300 

// How long a GPS receiver will retain and use an ephemeris past its Time of Ephemeris value. 
// Value in sec. Min value: 3600. Max value: 14400. Default 7200.
TOE_Chip_Exp: 7200

// EE supplied by the MSL (using the RXN_MSL_GetAssistance function) must have a URE value at
// or below this threshold. If EE has URE above this threshold for any PRN/SV, no assistance
// data will be provided for that PRN/SV.
// Value in meters. Min value: 20. Max Value: 200. Default value: 100.
URE_Threshold: 100

// EE supplied by the MSL (using the RXN_MSL_GetAssistance function) must have a FT value at
// or below this threshold. If EE has FT above this threshold for any PRN/SV, no assistance
// data will be provided for that PRN/SV.
// Value in meters. Min value: 20. Max Value: 200. Default value: 100.
FT_Threshold: 100
// How frequently to check the seed for required clock or seed updates.
// Value in sec. Min value: 60. Max value: 3600. Default 600.
System_Check_Freq: 3600

// ---------------------------------
// Autonomous Mode Specific Elements
// ---------------------------------

// Seed start time offset from TOE.
Value in sec. Min value: -14400. Max value. 14400.  Default -7200.
TOE_Buf_Offset: -7200 

// ---------------------------------
// Connected Mode Specific Elements
// ---------------------------------

// ******** max number of server accesses is 3 per week any combo of Seed accesses or Clock Updates
// ******** max frequency of accesses is every 48 hours

// Security Key file path. Path to the RxN security key file that is used to support evalutation or licensed product use.
// Note that the path is typically relative but can be explicit from file system root. Max path is 512 chars.
// Default behaviour is to have the key file adjacent to the executable that consumes the MSL library (./security.key)
Sec_Key_Path: /system/etc/gps/RXN/security.key

// Model ID. Each vendor should specify a model ID to support access to PGPS seeds and clock updates.
// A default model ID is provided.
Model_ID: HTC_Endeavor

// Seed Host Format Field. Specifies the format of the PGPS seed DNS entries. The '%' char within this
// field will be replaced by 1 - N where 'N' is specified as the Seed_Max_Host_Idx (see below).
// Default "pine%.gpstream.net " supporting access to pine1.gpstream.net, pine2.gpstream.net and
// (assuming Seed_Max_Host_Idx = 3) pine3.gpstream.net.
Seed_Host: pine%.gpstream.net

// Max index for the DNS entry specfied within the "Seed_Host" value. See Seed_Host comments for details.
// Default value: 3.
Seed_Max_Host_Idx: 3

// Seed Host Port. Port used for PGPS seed server comms. Default value: 9280.
Seed_Port: 9280

// SNTP Host Format Field. Specifies the format of the SNTP DNS entries. 
// Default "time1.gpstream.net " supporting access to Rx Networks SNTP time server.
SNTP_Host: time1.gpstream.net

// SNTP Host Port. Port used for SNTP time server comms. Default value: 123.
SNTP_Port: 123

// Time to wait during start up before making seed or SNTP request.
// Value in sec. Min value: 0 Max value: 604800. Default value: 10.
Startup_Data_Wait_Duration: 10
// Rx Networks does not recommend using device system time as a source of time.
// If there are not other available options for a time source, then this parameter
// will enable to use of system time as a source of time.
// Set to 1 to enable use of system time, 0 to never use system time.
Use_System_Time: 0

// Maximum allowable uncertainty for GPS clock for seed requests.
// Value in sec. Min value: 0. Max value: 7200. Default Value: 120.
Seed_GPSTime_Uncert_Thresh: 120

// Maximum allowable uncertainty for GPS clock for SNTP requests.
// Value in sec. Min value: 0. Max value: 7200. Default Value: 3.
SNTP_GPSTime_Uncert_Thresh: 3

// How frequent we hit the SNTP server after a failed initial attempt.
// Value in sec. Min value: 0. Max value: 604800. Default value: 30.
SNTP_Retry_Period: 300

// Maximum number of failed retry, before stopping further seed downloads until SNTP_Retry_Timer has elapsed.
// Min value: 0. Max value: 10. Default value: 3.
SNTP_Retry_Max: 3

// Duration till the next set of retries to SNTP server after SNTP_Retry_Max failures have been reached.
// Value in sec. Min value: Greater than System_Check_Freq. Max value: 604800. Default value: 86400.
SNTP_Retry_Timer: 86400

// Maximum number of failed retry, before stopping further seed downloads until Seed_Retry_Timer has elapsed.
// Min value: 0. Max value: 10. Default value: 3.
Seed_Retry_Max: 3

// How frequent we hit the seed server after a failed initial attempt.
// Value in sec. Min value: 0. Max value: 604800. Default value: 30.
Seed_Retry_Period: 300

// Duration till the next set of retries to seed server after Seed_Retry_Max failures have been reached.
// Value in sec. Min value: Greater than System_Check_Freq. Max value: 604800. Default value: 86400.
Seed_Retry_Timer: 86400

// If set to 1, download operations will only occur when a network connection is available. If set to 0 
// download operations will not verify network connection. This is currently only fully implemented in Android.
Respect_Data_Settings: 1

// ---------------------------------
// Constellation Specific Elements
// ---------------------------------

// Constellation configuration.  This is a priority list of constellations that will be processed.
// If a constellation is not in the list, it will be omitted.  Known values are GPS and GLONASS.
Constel_Config: GPS

// Number of seconds to propagate forward when extended ephemeris is generated. 
// Value in sec. Min value: 14400 Max value: 604800. Default 604800. Please use multiples of 14400 (4 hours)
GPS_Prop_Fwd: 604800

// How old the seed should be before being replaced. Please note that if set to a value less than 16 hours (for testing)
// there is a potential to download the same seed from the server.
// Value in sec. Min value: 60. Max value: 604800. Default value: 259200 (3 days)
//GPS_Seed_Update_Age: 259200
GPS_Seed_Update_Age: 86400

// Maximum randomized offset to be added to the Seed_Update_Age for server access load balancing.
// Value in sec. Min value: 0. Max value: Max value: 86400. Default 7200
GPS_Seed_Update_Age_Offset: 7200

// How old the seed should be before a clock drift update is applied. Note that a value
// of '0' stipulates that no clock drift updates are to occur.
// Value in sec. Min value: 43200 (12 hours). Max value: 604800. Default value: 345600 (4 days)
GPS_Clock_Update_Age: 345600

// How Maximum offset used by a random function to added to the Clock_Update_Age for server access load balancing.
// Value in sec. Min value: 0. Max value: Max value: 86400. Default 7200
GPS_Clock_Update_Age_Offset: 7200

// Number of seconds to propagate forward when extended ephemeris is generated. 
// Value in sec. Min value: 14400 Max value: 604800. Default 604800. Please use multiples of 14400 (4 hours)
GLO_Prop_Fwd: 604800

// How old the seed should be before being replaced. Please note that if set to a value less than 16 hours (for testing)
// there is a potential to download the same seed from the server.
// Value in sec. Min value: 60. Max value: 604800. Default value: 259200 (3 days)
GLO_Seed_Update_Age: 259200

// Maximum randomized offset to be added to the Seed_Update_Age for server access load balancing.
// Value in sec. Min value: 0. Max value: Max value: 86400. Default 7200
GLO_Seed_Update_Age_Offset: 7200

// How old the seed should be before a clock updated. Note that a value
// of '0' stipulates that no clock updates are to occur.
// Value in sec. Min value: 43200 (12 hours). Max value: 604800. Default value: 345600 (4 days)
GLO_Clock_Update_Age: 345600

// How Maximum offset used by a random function to added to the Clock_Update_Age for server access load balancing.
// Value in sec. Min value: 0. Max value: Max value: 86400. Default 7200
GLO_Clock_Update_Age_Offset: 7200

// Enable En to be written in extended ephemeris.  En is the number of days since the sv received
// updated ephemeris from the control segment.  For artificially produced EE, En is set to the seed 
// age in days.  However, while it is possible to get good results from EE that is several days old, 
// some chipsets may discard this assistance because BCE of this age would have no value.  Because 
// of this, En is set to 0 by default.
// Set to 1 to enable En to be provided in assistance.  Set to 0 to always set En to 0.
GLO_Enable_En: 0
// GLONASS time is bounded to 15 minute intervals.  The MSL by default allows assistance to be
// requested for any time, whether that time is a valid GLONASS time or not.  Use this flag to
// force assistance to be requested for the nearest 15 minute period.
// Set to 1 to use bounded GLONASS time.  Set to 0 to use continuous time (Default).
GLO_Use_Bounded_Time: 0
// XYBRID Host Format Field. Specifies the format of the XYBRID DNS entries. The '%' char within this
// field will be replaced by 1 - N where 'N' is specified as the Xybrid_Max_Host_Idx (see below).
// Default "xybrid%.gpstream.net" supporting access to xybrid1.gpstream.net and xybrid2.gpstream.net
// (assuming Xybrid_Max_Host_Idx = 2).
Xybrid_Host: xybrid%.gpstream.net
// Max index for the DNS entry specfied within the "XYBRID_Host". See XYBRID_Host comments for details.
// Default value: 2.
Xybrid_Max_Host_Idx: 2
// XYBRID Host Port. Port used for XYBRID server. Default value: 9380.
Xybrid_Port: 9380
// XYBRID Vendor ID.  The vendor ID used to authenticate to the XYBRID server.  Rx Networks will provide 
// a XYBRID Vendor ID to each customer.  Default value: evaluation
Xybrid_VendorID: evaluation
