146
9.
3Gmodem connection with LM2
Logic Machine 3 has standard 3G modem driver built-in (Huawei and other vendor support).
Currently this can be used for SMS notifications only – receiving and sending commands.
Further 3G router support will be added.
Command syntax:
a. Write to bus:
W ALIAS VALUE
b. Read from bus:
R ALIAS
On read request, script will reply with SMS message containing current value of selected object.
ALIAS can be:
a. Group address (e.g. 1/1/1)
b. Name (e.g. Obj1). If name contains spaces then it must be escaped usign double quotes (e.g.
"Room Temperature")
NOTE:
a. Object data type and name must be set in Objects tab. Otherwise script won't be able to read
and write to object.
b. Only ASCII symbols are accepted in the message.
9.1.
Examples
Binary write
(send the following SMS to switch kitchen lights on):
W 1/1/1 true
Scaling write
(send the following SMS to set value 67% for red LED):
W LED1Red 67
Temperature (floating point) write
(send the following SMS to make setpoint in the living room to 22.5 degrees):
W “Room Setpoint” 22.5
Read
(send the following SMS to read the security panel value:
R 2/1/1
9.2.
SMS handler program
A resident script for SMS handler should be created with sleep interval 0 following code.
Note!
Change white list telephone numbers and SIM card’s PIN code in the below script.
1.
-- init
Summary of Contents for LogicMachine3 Re:actor
Page 10: ...10 Terminal connection schemes KNX TP...
Page 12: ...12 24V power supply...
Page 13: ...13 Analog inputs e g reed contact...
Page 14: ...14 Analog inputs 0 10V...
Page 15: ...15 Digital output...
Page 16: ...16 Resistive sensor input...
Page 17: ...17 Analog output...
Page 26: ...26 Make sure that bus status is Online press button in ETS...
Page 35: ...35 o Then minimize side bar by pressing on left arrow icon to make the map more visible...
Page 83: ...83 66 if err then 67 alert FTP upload failed s err 68 end...
Page 107: ...107...
Page 108: ...108 1 14 Help Documentation for scripting syntaxes is displayed in Help tab...
Page 126: ...126 Datapoints can be shown also in a way of table which can be later exported as CSV file...
Page 141: ...141...