C
ONFIGURATION
C
OMMAND
S
ET
- F
IRMWARE
R
EVISION
2.4.0_
BETA
-
V
ERSION
1.0.0
3.2.25.1.1.2.5
Sys.Counter (COUNTER events and states)
STATES
-
are checked every second
State notification code
Meaning
Sys.Counter.s<
index
><
comp
><
value
>
Indicates the current state of a counter index. True when the value of the
Counter<
index
> matches the specified value. Counters do not automatically
increment or decrement themself. To reach a certain value for a counter, the
increment or decrement command (see chapter
should be x-time
called until the counter reaches the supposed value. When system starts all
counters are initialized to 0.
Example:
Sys.Counter.s0=30
How to use such a state, refer to chapters
<
index
>
Specifies the counter identifier. It can be set to a value from 0 to 19
<
comp
>
Compares two values and return a Boolean (True/False) value that represents
the result of the comparison. It can be set to =, !=, <, >, <= or >=.
<
value
>
32-bit integer value from 0 to 2147483647 which determines the value of the
counter to be reached
EVENTS
-
are evaluated just when the event occurs
Event notification code
Meaning
Sys.Counter.e<
index
>
Occurs when a configured system
Counter
reaches its minimum value zero (0)
for the first time. To reach a 0 value for a counter, the decrement command
should be x- time called until the counter reaches that value.
For example:
Decrements a counter (counts toward the minimum 0) when a SMS is sent.
When the specified counter reaches the value 0, then send a TCP packet to the
connected remote server.
$PFAL,Sys.Counter0.set=5;Sys.Counter0.save1
$PFAL,Cnf.Set,AL0=Sys.Device.eStart:Sys.Counter0=load1
$PFAL,Cnf.Set,AL1=GSM.SMS.eSent:Sys.Counter0.Decrement=1
$PFAL,Cnf.Set,AL2=
Sys.Counter.e0
:TCP.Client.Send,8,“positions:”
This configuration means after the device has sent five SMSs, it transmits a
TCP packet to the remote server.
<
index
>
Specifies the counter identifier. It can be set to a value from 0 to 19.
Table 15:
Counter events and states.
This confidential document is a property of FALCOM and may not be copied or circulated without previous permission.
Page 215 of 271