beautypg.com

Monitoring the modem – Spectra Precision ProFlex 800 Reference Manual User Manual

Page 293

background image

279

Integrating ProFlex 800 into Your Application

Monitoring the

Modem

Set the antenna height (for example a slant
height of 1.45 meters was measured):
NOTE: When a slant height is entered, you
also need to enter the antenna radius and
the ARP-to-SHMP vertical offset (negative
if ARP is below SHMP).

$PASHS,ANT,1.45,0.0921,-0.0516
$PASHR,ACK*3D

Enter the coordinates of the base:

$PASHS,POS,4717.93777,N,
130.541864,W,87.007
$PASHR,ACK*3D

Set the modem and GPRS parameters
(Power mode, PIN code, APN settings, IP
protocol, auto-dial, re-dials, 2G/3G):

$PASHS,MDM,PAR,PWR,AUT,
PIN,1234,APN,ssx.com,LGN,Ssx,
PWD,ssx3,IPT,1,ADL,Y,RNO,3,
NET,0
$PASHR,ACK*3D

Set the modem in GPRS and TCP/IP
modes:

$PASHS,MDM,PAR,PTC,1,IPT,0
$PASHR,ACK*3D

Turn on the modem (unless the modem has
been set in automatic power mode):

$PASHS,MDM,ON
$PASHR,ACK*3D

Initialize the modem. Wait a few seconds
until the receiver can respond to this com-
mand.
NOTE:If the initialization fails, the message
$PASHR,MDM,INI,FAILED*7D is returned.

$PASHS,MDM,INI
$PASHR,MDM,INI,OK*7A

Set the type of differential data sent to the
modem (port E):

$PASHS,BAS,E,RT3
$PASHR,ACK*3D

Set the receiver to be a base transmitting
GPS data (+ GLONASS and/or SBAS
data):

$PASHS,CPD,MOD,BAS,0
$PASHR,ACK*3D

Ask the modem to connect to the server:
NOTE: The ADD field may contain either an
IP address or a host name.

$PASHS,DIP,PAR,ADD,192.65.54.
1
,PRT,80,IPP,E
$PASHR,ACK*3D
$PASHS,DIP,ON
$PASHR,ACK*3D

Action

Command

Action

Command

Query the modem status and settings:

$PASHQ,MDM
$PASHR,MDM,E,9,ONLINE,...
or
$PASHQ,MDM,STS
$PASHR,MDM,STS,INIT,"Ssx
F",2G,60*77

Query the modem signal level:

$PASHQ,MDM,LVL
$PASHR,MDM,LVL,80*6E