
Chapter 22 – AT Command Examples
Multi-Tech Systems, Inc. CDMA Wireless AT Commands (PN S000294J)
175
GpsOne Examples
Single-Shot Data Burst gpsOne
AT+WPDST=1
Session type is single-shot
OK
AT+WPDOM=3
Accuracy optimal operation mode
OK
AT+WPPRV?
Display privacy setting
+WPPRV: 0
Privacy is set to allow all
OK
AT+WPTLM=1
Set gpsOne transport level (DBM); carrier specific capability
OK
AT+WPDSS=“PVH”,60,50
Starts the gpsOne session
OK
+WPDSS:#,#,#,#,#,#,1,7,#,#,#,#,#
The result is returned in a +WPDSS unsolicited response
Single-Shot TCPIP gpsOne
AT+WPDST=1
Session type is single-shot
OK
AT+WPDOM=2
Speed optimal operation mode
OK
AT+WPPRV?
Display privacy setting
+WPPRV: 0
Privacy is set to allow all
OK
AT+WPTLM=0
Set gpsOne transport level (TCPIP); carrier specific capability
OK
AT+WPDIP=“xxx.xxx.xxx.xxx”
Set the IP address; carrier specific value
OK
AT+WPDPT=xxxx
Set the IP port; carrier specific value
OK
AT+WPDSS=“P”,60,50
Starts the gpsOne session
OK
+WPDSS:#,#,#,#,#,#,0,0,#,#,#,#,#
The result is returned in a +WPDSS unsolicited response
Continuous Data Burst gpsOne
AT+WPDST=3
Session type is continuous
OK
AT+WPDOM=3
Accuracy optimal operation mode
OK
AT+WPPRV=0
Set privacy setting to allow all
OK
AT+WPTLM=1
Set gpsOne transport level (DBM); carrier specific capability
OK
AT+WPDFR=5,30
Configure the fix rate settings; five fixes at 30 second intervals
OK
AT+WPDSS=“PV”,60,50
Starts the gpsOne session
OK
+WPDSS:#,#,#,#,#,#,1,6,#,#,#,#,#
The results are returned in +WPDSS unsolicited responses
…
+WPDSS:#,#,#,#,#,#,1,6,#,#,#,#,#
AT+WPDES
Can be used to cancel the gpsOne session before all fix results are returned
OK
Mobile Station Based gpsOne Session
The module receives data from the location server to aid in calculation of position.
To perform a MS-based gpsOne session, a data download
session must happen first (and periodically) to get the latest ephemeris and timing information from the network.
AT+WPPRV=0
Set privacy setting to allow all
OK
AT+WPTLM=1
Set gpsOne transport level (DBM); carrier specific capability
OK
AT+WPDOM=3
Accuracy optimal operation mode
AT+WPDFR=180,10
Configure the fix rate settings; 180 fixes at 10 second intervals; 30 minutes duration.
OK
Ephemeriis and timing information should be updated once every 30 to 120 minutes to
maintain positioning accuracy.
< begin loop>
AT+WPDST=4
Set data download session type
OK
AT+WPDDD=0,10
Single-shot data download of latest ephemeris and timing information; 2
nd
parameter
OK
ignored
AT+WPDST=3
Set session type is continuous
OK
AT+WPDSS=“PVH”,60,50
Starts the gpsOne session
OK
+WPDSS:#,#,#,#,#,#,1,7,#,#,#,#,#
Host application processes the data of each +WPDSS unsolicited response.
Repeat loop after last response (180
th
in this example) is processed.
...
< end loop>