-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy pathgpsinit_reset.conf
55 lines (53 loc) · 1.87 KB
/
gpsinit_reset.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# You can use the following variables in this file...
# ${SPEED}
# ${DEVICE}
#
# The following commands are recognized...
#
# sleep <seconds> Sleep for n.nnn seconds
# set_system_clock Gets the date/time from the GPS unit and sets the system clock
# setspeed <newspeed> Set new port and unit speed to <newspeed>
# clear_epo Clear the existing EPO from the device
# eporetrieve <eporetrieve_args> Run eporetrieve
# epoloader <epoloader_args> Run epoloader
# factory_reset Clear system/user configurations then cold start
# The unit and port speed will be reset to 9600
# debug_on Turn debugging output on
# debug_off Turn debugging output off
# The following commands can be prefixed with '-' to not wait for an ACK.
# hot_start Restart using all available data
# warm_start Don't use Ephemeris at restart
# cold_start Don't use Time, Position, Almanacs and Ephemeris data at re‐start
# PMTKnnn,<args> Send the specified PMTK command
#
# Clear the EPO NVRAM
clear_epo
# Factory reset
factory_reset
# Now set to 115200
setspeed 115200
# Set DGPS mode to SBAS
PMTK301,2
# Set SBAS Enabled
PMTK313,1
# Set NMEA Sentence Output
PMTK314,1,1,1,1,1,5,0,0,0,0,0,0,0,0,0,0,0,1,0
# Set SBAS 'Integrity' Mode
PMTK319,1
# Disable Periodic Mode
PMTK225,0
# Enable AIC Mode
PMTK286,1
# Set static threshold to 1KPH (0.27m/s)
PMTK386,0.27
# Enable EASY Mode
PMTK869,1,1
# Set output rate to 1 second
PMTK220,1000
# Retrieve the EPO
eporetrieve EPO.DAT /tmp/EPO.DAT
# Load the EPO.
epoloader -n -c -s ${SPEED} @/etc/gpsinit_loc.conf /tmp/EPO.DAT ${DEVICE}
#
# You shouldn't put anything after the epoloader.
# It may disturb the unit's ability to get a first fix.