![Gemalto Cinterion EHS6 Command Manual Download Page 480](http://html.mh-extra.com/html/gemalto/cinterion-ehs6/cinterion-ehs6_command-manual_2206684480.webp)
Cinterion
®
EHS6 AT Command Set
20.5 AT^SSCNT
EHS6_ATC_V03.001
15/12/3
Confidential / Released
Page 480 of 513
3
The effect of value 3 depends on the selected counter mode:
If
, parameter
= 0 (Start-Stop counter mode), then
type 3 stops the pulse counter and displays, as "
" URC, the
number of pulses counted until this time.
If
= 1 (Limit counter mode), then
type 3 immediately stops the pulse counter without indicating the "
"
URC. This action has the same effect as the command
=0,0.
Measurement result of the pulse counter in Start-Stop mode, indicated within the "
" URC, if
,
parameter
=2 or 3. The value range of
is 32 bits (2
31
-1).
0...2147483647
Number of pulses counted.
Note
• Measurement accuracy: In Start-Stop mode, take care that pulse transmission begins after the start command
(
=0 or 1) has returned OK and ends before the stop command (
=3) is issued. Neverthe-
less, up to 4 pulses (depending on pulse frequency) may be lost when
=2 (read) or 3 (stop) is sent
within less than 15ms after the last pulse occurred.
20.5.1
Using the Pulse Counter in Start-Stop Counter Mode
<pulse>
(num)
at^sccnt=1,0
Open pulse counter and enable Start-Stop counter mode.
OK
at^sscnt=0
Reset and start pulse counter from 0.
OK
at^sscnt=2
Request value.
OK
^SSCNT: 0000003254
" URC indicates number of pulses counted.
at^sscnt=2
Request value.
OK
^SSCNT: 0000010024
" URC indicates number of pulses counted.
at^sscnt=2
Request value.
OK
^SSCNT: 0000015134
" URC indicates number of pulses counted.
at^sscnt=3
Request value and stop pulse counter.
OK
^SSCNT: 0000021020
" URC indicates number of pulses counted until this time.
at^sscnt=2
Request value.
OK
^SSCNT: 0000021020
" URC still indicates the count of the last run.
at^sscnt=1
Restart pulse counter at the value of the last run.
OK
at^sscnt=2
Request value.
OK
^SSCNT: 0000022123
" URC indicates number of pulses incremented from the last
run.
at^sccnt=1,0
Open pulse counter and enable Start-Stop counter mode.
OK
at^sscnt=0
Reset and start pulse counter from 0.
OK
at^sscnt=2
Request value.
OK
^SSCNT: 3254
" URC indicates number of pulses counted.