ST: Status (enquire)
The Status enquire returns the current System Sentry status as follows:
>%02X%02X%02X%02X%02X%02X%02X%04X%04X%04X,%04X
The ">" indicates the start of the response (common to all enquires).
The ending ",%04X" is a 16 bit CRC check value (common to all enquires).
The 7 values between these numbers are the actual status values.
Status values:
%02X - Current Time (Seconds/00-59)
%02X - Current Time (Minutes/00-59)
%02X - Current Time (Hours/00-23)
%02X - Current Date (Day of Week/1-7)
%02X - Current Date (Day of Month/1-31)
%02X - Current Date (Month/1-12)
%02X - Current Date (Year/00-99)
%04X - Total number of memory pages (260 bytes each). Should always be 0x1000
%04X - Total number of memory pages used
%04X - Total number of memory pages containing new data
SK: Set Clock (command)
This command sets the internal clock on the System Sentry.
SK=%02X%02X%02X%02X%02X%02X%02X
The "SK" is the set clock command.
The "=" marks the start of the settings.
The 7 values represent the time you want to set as listed below.
Command values:
%02X - Current Time (Seconds/00-59)
%02X - Current Time (Minutes/00-59)
%02X - Current Time (Hours/00-23)
%02X - Current Date (Day of Week/1-7)
%02X - Current Date (Day of Month/1-31)
%02X - Current Date (Month/1-12)
%02X - Current Date (Year/00-99)
G0: Get Modem Monitor (enquire) S0: Set Modem Monitor (command)
This enquire returns the current Modem Monitor configuration. The command sets the current Modem Monitor configuration. Regardless if it is a command or enquire, the sequence and type of parameters are the same. Note that the enquire always ends in a ,%04X representing the CRC value and the command is always followed with an equals (S0=….).
%1X |
MODEM_TYPE |
Sets the type of modem configuration:
|
||||
%02X |
MODEM_RINGS |
Number of rings in a row without a pickup to cause Modem Restart. |
||||
%04X |
MODEM_MAXTIME1 |
Maximum off hook time before automatically causing Modem Restart with no DCD (in 1.14 second increments). Set to *0 to disable. This is always disabled when MODEM_TYPE is set to CELLULAR. |
||||
%04X |
MODEM_MAXTIME2 |
Maximum off hook time before automatically causing Modem Restart with DCD active (in 1.14 second increments). Set to *0 to disable. |
||||
%1X |
MODEM_POWERTIME |
Set to Number of power times to use. Set to *0 to power modem all the time. |
||||
%1X |
MODEM_POWERONRING |
If powered off, turn modem on when a ring is detected (1=Yes,*0=No). |
||||
%04X%04X |
MODEM_POWERTIME1 |
Power On Time #1 - Start Time & End Time. |
||||
%04X%04X |
MODEM_POWERTIME2 |
Power On Time #2 - Start Time & End Time. |
||||
%04X%04X |
MODEM_POWERTIME3 |
Power On Time #3 - Start Time & End Time. |
||||
%04X%04X |
MODEM_POWERTIME4 |
Power On Time #4 - Start Time & End Time. |
||||
%04X%04X |
MODEM_POWERTIME5 |
Power On Time #5 - Start Time & End Time. |
||||
%04X |
MODEM_REINITTIME1 |
Time #1 to reinitialize modem. Set to *0xFFFF to disable. |
||||
%04X |
MODEM_REINITTIME2 |
Time #2 to reinitialize modem. Set to *0xFFFF to disable. |
||||
%04X |
MODEM_REINITTIME3 |
Time #3 to reinitialize modem. Set to *0xFFFF to disable. |
||||
%1X |
MODEM_INITBAUD |
Baud rate to reinitialize modem at: |
||||
%04X |
MODEM_OFFTIME |
Time to leave modem off before powering back on (in 1.14 second increments). From 3 (default) to 999. |
||||
%-50s |
MODEM_INITSTR1 |
Modem Initialization String #1 (50 characters). Default = AT&F |
||||
%-50s |
MODEM_INITSTR2 |
Modem Initialization String #2 (50 characters). Default = |
||||
%-50s |
MODEM_INITSTR3 |
Modem Initialization String #3 (50 characters). Default = |
||||
%-50s |
MODEM_INITSTR4 |
Modem Initialization String #4 (50 characters). Default = |
||||
%-50s |
MODEM_INITSTR5 |
Modem Initialization String #5 (50 characters). Default = |
G1: Get Call Back (enquire) S1: Set Call Back (command)
NOTE: These commands are a future enhancement and are not supported in V1.00.
%1X |
FMODEM_BAUD |
Baud rate to initialize calls at: |
%-50s |
FMODEM_CALLSTR1 |
Modem Calling String #1 (50 characters). Default = AT&F |
%-50s |
FMODEM_CALLSTR2 |
Modem Calling String #2 (50 characters). Default = |
%-50s |
FMODEM_CALLSTR3 |
Modem Calling String #3 (50 characters). Default = |
%-50s |
FMODEM_CALLNUMBER |
Modem Calling Command & Number (50 characters). Default = ATDT1-541-345-8231 |
%1X |
FMODEM_CALLTIMES |
When to call (*0=On alert,1-3=Times). |
%04X |
FMODEM_CALLTIME1 |
Call Time #1 (* |
%04X |
FMODEM_CALLTIME2 |
Call Time #2 (* |
%04X |
FMODEM_CALLTIME3 |
Call Time #3 (* |
%04X |
FMODEM_WAITDCD |
Time to wait for Carrier Detect (in 1.14 second increments) Default = 105 (120 seconds) |
%02X |
FMODEM_ATTEMPT |
Number of recall attempts before moving to next calling time. Note that if FMODEM_CALLTIMES is set to 0, then the call times will still be used for any unsuccessful reportings. Default = 3 |
G2: Get Alerts (enquire) S2: Set Alerts (command)
NOTE: These commands are a future enhancement and are not supported in V1.00.
%1X |
EMAIL_ALERTS |
Enable or disable the alerts (1=Enabled,*0=Disabled) |
%04X |
ALERT_NOCHARGE |
No charging alert. Set to 0 to disable, or from 1-1000 hours in a row with < 50mA Charge. |
%04X |
ALERT_CHARGEMAX ALERT_CHARGEMIN |
Charger current alert (*0 disabled on both). Set to number of mA the Maximum and Minimum from the DC input. |
%04X |
ALERT_BATTMAXIN ALERT_BATTMININ |
|
%04X |
ALERT_BATTINPER ALERT_BATTINTIME |
|
%04X |
ALERT_BATTMAXOUT ALERT_BATTMINOUT |
|
%04X |
ALERT_BATTOUTPER ALERT_BATTOUTTIME |
|
%04X |
ALERT_BATMAXVOLT ALERT_BATMINVOLT |
Battery Voltage Alert (*0 disabled on both). Set to the minimum and maximum 12V battery voltage (in tenths of a volt). |
%04X |
ALERT_MODEMMAX ALERT_MODEMMIN |
Modem drain alert (*0 disabled on both). Set to number of mA the Maximum and Minimum being drawn from the Modem. |
%04X |
ALERT_ATRMAX |
ATR charge alert (*0 disabled on both). Set to number of mA the Maximum and Minimum into the ATR DC Input. |
%04X |
ALERT_ATR2MAXVOLT ALERT_ATR2MINVOLT |
ATR Internal Battery Voltage Alert (*0 disabled on both). Set to the minimum and maximum battery voltage (in tenths of a volt) for the internal ATR battery. |
%04X |
ALERT_ATR2MAXIN |
ATR Internal Battery charge alert (*0 disabled on both). Set to number of mA the Maximum and Minimum into the internal ATR Battery. |
%04X |
ALERT_ATR2MAXOUT ALERT_ATR2MINOUT |
ATR Internal Battery drain alert (*0 disabled on both). Set to number of mA the Maximum and Minimum out of the internal ATR Battery. |
%04X |
ALERT_SMARTPWR1 ALERT_SMARTPWR1DY |
Enables the overall power alert (0 to disable). This is if the amount of charging is less than this value (in hundredths) times the average current draw for DY days. |
%04X |
ALERT_SMARTPWR2 |
If enabled, generates an alert if the 12V battery fails to charge to the same point after getting this value (in hundredths) times current into it. Set to zero to disable. |
%04X |
ALERT_SMARTPWR3 |
If enabled, generates an alert if the ATR internal battery fails to charge to the same point after getting this value (in hundredths) times current into it. Set to zero to disable. |
%02X |
DEVICE_TYPE |
Type of ATR or other device connected to: |
%1X |
DEVICE_BAUD |
Baud rate to talk to device at: |
%02X |
SENTRY_ID |
ID Code of System Sentry (0-255) Default is *0. This is used for multi-sentry locations. |
%04X |
SOLAR_CUR_OFF |
Offset value for the Solar/DC Charger input (signed). Default = 12 |
%04X |
12VBATT_CUR_OFF |
Offset value for the 12 Volt DC |
%04X |
MODEM_CUR_OFF |
Offset value for the Modem power (signed). Default = 16 |
%04X |
ATRIN_CUR_OFF |
Offset value for the ATR Input power (signed). Default = 16 |
%04X |
ATRBATT_CUR_OFF |
Offset value for the ATR Battery power (signed). Default = 16 |
%04X |
ZERO_CUR_HIGH |
Positive current reading at or under to consider 0mA, Default = 3 |
%04X |
ZERO_CUR_LOW |
Negative current reading at or above to consider 0mA, Default = -3 (0xFFFD) |
%04X |
TEMP_OFFSET |
Signed temperature offset (in 0.5 degree C increments). Default = 8 |
%-50s |
FMODEM_SITEID |
Site ID of location of System Sentry (50 characters). Default = Site ID of System Sentry |
%-50s |
FMODEM_SITEPHONE |
Phone number at System Sentry location (50 characters). Default = Site ID of System Sentry |
The ">" indicates the start of the response (common to all enquires).
The eight middle "%04X" values are the actual real time values (see below)
The last ",%04X" is a 16 bit CRC check value (common to all enquires).
%04X - Voltage @ 12V Battery/DC Charger
Value is in 1/20th of a volt (0.05V). This is the average voltage during the period (9 bits, 0x1FF, from 0 to 511 which equals 0.00V to 25.55V).
%04X - Voltage @ ATR Battery
Value is in 1/20th of a volt (0.05V). This is the average voltage during the period (9 bits, 0x1FF, from 0 to 511 which equals 0.00V to 25.55V).
%04X - Solar/DC Charger Current Measurement
Value is in 1.63mA increments. This is the average current during period (12 bits + sign bit = 13 total, 0xFFF for data, 0mA to 6675mA). Positive number indicates power coming in from charger.
%04X - 12V Battery Current Measurement
Value is in 1.63mA increments. This is the average current during period (13 bits, 12 data bits + sign bit, 0xFFF for data, 0mA to 6675mA). Positive number means battery is being drained, negative number indicates battery is being charged.
%04X - Modem Current Measurement
Value is in 0.84mA increments. This is the average current during period (11 data bits, no sign, 0x7FF for data, 0mA to 1719mA). This always positive number indicates power going to the modem.
%04X - ATR Power In Current Measurement
Value is in 0.84mA increments. This is the average current during period (12 bits, 11 data bits + sign bit, 0x7FF for data, 0mA to 1719mA). Positive number indicates power going to traffic counter.
%04X - ATR Battery Current Measurement
Value is in 0.84mA increments. This is the average current during period (12 bits, 11 data bits + sign bit, 0x7FF for data, 0mA to 1719mA). A positive number indicates battery is being drained, a negative number indicates battery is being charged.
%04X - Temperature
Value is 0.5 degrees C. This is the average temperature during period (8 bits plus 9th sign bit sign, 0xFF for data, -128.5C to +128.5C).
>%06X,%04X
The ">" indicates the start of the response (common to all enquires).
The "%06X " value is the total size of the data being sent.
The last ",%04X" is a 16 bit CRC check value (common to all enquires).
CL=VERIFIED!The System Sentry will clear all memory and then send "OK".
IN=%02X [ … ]
IN=01
Power traffic counter off and then on again, optionally followed by a %02X which specifies the amount of time to leave it off (in 1 second increments), otherwise it is done for 10 seconds. When device is powered back on, the System Sentry sends OK.
IN=02
Pulse the open collector Diamond Power switch, optionally followed by a %02X which specifies the amount of time to leave it off (in 1 second increments), otherwise it is done for 2 seconds. This command normally follows the IN=01 command on Diamond counters.
NF=YES!
Last Updated
21st of October, 2011