Monitoring the modem, Ending the direct ip connection – Spectra Precision ProFlex 800 Reference Manual User Manual
Page 285

271
Integrating ProFlex 800 into Your Application
Monitoring the
Modem
Ending the Direct
IP Connection
Set the antenna reduction mode to ON, so
that all coordinates refer to the ground
mark:
$PASHS,ANR,ON
$PASHR,ACK*3D
Enter the antenna height (e.g. a vertical
height of 2.0 meters was measured):
$PASHS,ANT,0,0,2
$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 receiver to be a rover:
$PASHS,CPD,MOD,ROV
$PASHR,ACK*3D
Ask the modem to connect to the server:
NOTE: The RIP field may contain either an
IP address or a host name.
$PASHS,DIP,PAR,...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
Action
Command
Ending the Direct IP connection:
$PASHS,DIP,OFF
$PASHR,ACK*3D