C
ONFIGURATION
C
OMMAND
S
ET
- F
IRMWARE
R
EVISION
2.4.0_
BETA
-
V
ERSION
1.0.0
3.2.13 REPLACE parameter
3.2.13.1
REPLACE<
index
>
Parameter syntax
REPLACE<
index
>=<
replace_string
>
Additionally replacement marks can be set within any
AL
<
alarms
>. Each
replacement mark belongs to a replacement configuration setting. The mark will
be replaced automatically an entry with its contents when an alarm is configured.
This is useful to
e.g.
store phone numbers within replacement configuration settings.
Instead of using this number within an alarm, you can simply add the proper
replacement mark. Doing so allows you to quickly change the replacement
configuration later – that changes all occurrences within your alarm configuration.
So you don't have to search and replace the whole alarm configuration anymore.
Of course this comes in mobile phone only if you use e.g. a phone number very
often within the alarm configuration. Changing this phone number now requires just
the change of one replacement configuration – not each configured alarm AL.
Example:
For example, instead of writing alarm such as the following:
AL0:IO.BTN.e0=short:GSM.SMS.Send,”+1234567”,8,"BTN0
-pressed-short
"
AL1:IO.BTN.e1=short:GSM.SMS.Send,”+1234567”,8,"BTN1
-pressed-short
"
AL2:IO.BTN.e1=long:GSM.SMS.Send,”+1234567”,8,"BTN1
-pressed-long
"
AL3:IO.BTN.e0=long:GSM.SMS.Send,”+1234567”,8,"BTN0
-pressed-long
"
Your alarm would look as follows:
A
L0:IO.BTN.e0=
short
:GSM.SMS.Send,“(REPLACE0)“,8,"
BTN0
-pressed-short
"
AL1:IO.BTN.e1=
short
:GSM.SMS.Send,“(REPLACE0)“,8,"
BTN1
-pressed-short
"
AL2:IO.BTN.e1=
long
:GSM.SMS.Send,“(REPLACE0)“,8,"
BTN1
-pressed-long
"
AL3:IO.BTN.e0=
long
:GSM.SMS.Send,“(REPLACE0)“,8,"
BTN0
-pressed-long
"
RE1234567
//
the phone number to which all SMS have to be sent
Now lets assume you want to change this phone number. Without replacement
marks, you would have to enter this number in each alarm where the phone
number entry is available
you would have to change 4 alarms. Using
replacement marks, you can simply change the
REPLACE0
setting – e.g. from
REPLACE0
=+1234567 to
REPLACE0
=+7654321.
After next restart of the device, all alarm settings will use the new phone number.
<
index
>
It specifies the replace index – a number that currently ranges from
0
to
9
(including 10 different replacements). These settings contain text that is inserted
into alarm configuration settings
(AL<x>=....)
at any occurrence of
(REPLACE<x>).
<
replace_string
>
It specifies the text to be replaced - with a maximum length of 200 characters.
How the configuration could be set/requested:
Set configuration
$PFAL,Cnf.Set,RE1234567
Get configuration
$PFAL,Cnf.Get, REPLACE0
This confidential document is a property of FALCOM and may not be copied or circulated without previous permission.
Page 166 of 271