AutoGRAPH- ST
– Remote Control Command
48
SETCP
Command
SETCP
Name
Geofencing
Supported with firmware
AGST-1.16 and higher
Description
Command provides to specify geofence settings and
enable it control. AutoGRAPH-ST supports only circle
geofences.
Command formats:
password SETCP=status,lat,lon,radius,flags;
parameters of the command:
status
– specify the following value:
0
– to disable geofence control;
1
– to enable geofence control.
lat
– latitude of the geofence midpoint. It must be specified decimally in degrees from -
90 to 90;
lon
– longitude of the geofence midpoint. It must be specified decimally in degrees from
-90 to 90;
radius
– radius of the geofence in meters. Minimum value is 200 m, maximum – 1000
km.
flags
– geofence settings. The flag must be a decimal number computed from binary
number. Every bit of binary number is matched to one of the following setting in order as
listed (from left to right):
srv
– data transferring to the server when entering to/exiting geofence: 0 – disables the
transferring, 1
– enables the transferring.
smtp
– Email sending when entering to/ exiting geofence: 0 – disables the sending, 1 –
enables the sending.
sms
– SMS sending when entering to/ exiting geofence: 0 – disables the sending, 1 –
enables the sending.
in
– control of entering to the geofence: 0 – disables the control, 1 – enables the control;
out
– control of exiting the geofence: 0 – disables the control, 1 – enables the control;
For example,
“00110” string enables SMS sending when entering to the geofence.
Decimal value of the “00110” is number 6.