forked from tjko/nxgipd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
nxcmd.1
285 lines (219 loc) · 7.5 KB
/
nxcmd.1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
.TH NXSTAT 1 "31 Jul 2015"
.UC 4
.SH NAME
nxcmd \- send commands to a NX-8/NX-8V/NX-8E Alarm Panel.
.SH SYNOPSIS
.B nxcmd
[
.B options
]
<
.B command
>
[
. B command arguments
]
.SH DESCRIPTION
.I nxcmd
is a utlitiy to display send commands to a alarm panel, that
is being monitored by nxgipd daemon.
This tool can be used to perform most keypad functions (if corresponding
commands are enabled in NX-584 configuration).
Additionally this command supports some special functionality not available
via normal keypads, like sending X-10 messages or displaying custom text
messages on NX-148e (LCD) keypads.
.SH OPTIONS
.PP
Options may be either the traditional POSIX one letter options, or the
GNU style long options. POSIX style options start with a single
``\-'', while GNU long options start with ``\-\^\-''.
Options offered by
.I nxcmd
are the following:
.TP 0.6i
.B -c <configfile>, --conf=<configfile>
Specifies the pathname of the configuration file. If not used program
will look for
.I /etc/nxgipd.conf
.TP 0.6i
.B -h, --help
Display short usage information and exit.
.TP 0.6i
.B -n, --nowait
Do not wait for response from server for the command.
.TP 0.6i
.B -t <n>, --timeout=<n>
Timeout (in seconds) for how long to wait response from the server.
Default is 10 seconds.
.TP 0.6i
.B -p <n>, --partition=<n>
Partition that the command should be applied to. Default is first partition (1).
.TP 0.6i
.B -v, --verbose
Enable more verbose output to stdout (when not running as daemon).
.TP 0.6i
.B -V, --version
Print program version and exit.
.SH COMMANDS
.PP
.B nxcmd
sends one command at a time to the alarm panel. Depending on the command
there may be mandatory parameters required.
.B Commands (no PIN required):
.TP 0.6i
.B exit
Same as pressing "Exit" button on the keypad. If one button arm is enabled this will arm the system in away mode. If system is already armed this will toggle "Instat" mode (if it is enabled by alarm configuration).
.TP 0.6i
.B stay
Same as pressing "Stay" button on the keypad. If one button arm is enabled this will arm the system in stay mode. If system is already armed this will toggle "Interiors" (if it is enabled by alarm configuration).
.TP 0.6i
.B chime
Same as pressing "Chime" button on the keypad. This will toggle the chime mode.
.TP 0.6i
.B bypass
Toggle bypass status of "interior" sonze.
.TP 0.6i
.B grpbypass
Group bypass.
.TP 0.6i
.B smokereset
Smoke detector manual reset.
.TP 0.6i
.B sounder
Enabled (turn on) keypad sounder.
.TP 0.6i
.B setclock
Synchronize panel clock with the system clock.
.PP
.TP 0.6i
.B zonebypass <zone number>
Togle bypass of given zone. Zone numbers are 1..192 range.
.TP 0.6i
.B x10 <house> <unit> <function>
Send X-10 Command. House parameter is a letter from A to P.
Unit parameter is number from 1 to 16.
And function is one of the following:
.I
on, off, dim, bright, lights-on, lights-off, units-off
.TP 0.6i
.B message <n> <line1> <line2> <sec>
Display custom message on designated pinpad for short amount of time. Parameter
.I n
specifies the pinpad (1=first pinpad). Parameters
.I text1
and
.I text2
specify two upto 16 character strings to display on the LCD
keypad screen (this works only on NX-148e keypads).
Final argument
.I sec
specifies how many seconds the message should be displayed (valid range 0-255).
.TP 0.6i
.B getprogram <device> <location>
Read program data (configuration) values from given device. Output is also sent
to nxgipd process log file (and/or to syslog depending on the configuration).
Arguments for this command are as follows:
.RS
.IP device
Specifies the bus address of device to be programed.
Valid range of device addresses is: 0..255
.IP location
Specifies the location to program on the device.
Valur range of program locations is: 0..4095
.RE
.RS
Consult the alarm panel or accessory/device documentation for the device bus addresses and applicaple program location numbers.
NOTE! Alarm panel itself is usually device number 8 (and not device 0 like when programming from a keypad).
Also it is not possible to get the program data of the NX-584 itself (device 72).
.RE
.TP 0.6i
.B setprogram <device> <location> <datatype> [--] <data1> ... <dataN>
Write program data (configuration) values to given device. This allows programming of the alarm panel and/or
any add-on modules in the systesm.
Typically you want first read given location using the
.B getprogram
command and then use ouput from that command to determine the
datatype and number of segments (and current program data values) to generate programming request.
Arguments for this command are as follows:
.RS
.IP device
Specifies the bus address of device to be programed.
Valid range of device addresses is: 0..255
.IP location
Specifies the location to program on the device.
Valur range of program locations is: 0..4095
.IP datatype
parameter may be set to one of the following values (these can be shortened):
binary
decimal
hexadecimal
ascii
.IP data
Depending on the location used there is 1 or more (up to 32) segments (values) to program on that location. These should be separated by spaces, except when
using
.B ascii
datatype when there should be just one parameter containing the string to program into that location.
.RE
.RS
NOTE! Alarm panel itself is usually device number 8 (and not device 0 like when programming from a keypad).
Also it is not possible to program the NX-584 itself (device 72).
.RE
.TP 0.6i
.B Commands (PIN required):
.TP 0.6i
.B armaway
Arm in Away mode. By default this affects partition 1, alternate target partition may be specified using the
.I --partition, -p
option.
.TP 0.6i
.B armstay
Arm in Stay mode. By default this affects partition 1, alternate target partition may be specified using the
.I --partition, -p
option.
.TP 0.6i
.B disarm
Disarm partition. This will disarm partition 1 unless otherwise specified using the
.I --partition, -p
option.
.TP 0.6i
.B silence
Turn off any sounder or alarm. This will turn of the main siren as well as keyboard sounder(s).
.TP 0.6i
.B cancel
Cancel Alarm. This will send alarm cancellation message.
.TP 0.6i
.B autoarm
Initiate auto-arm process.
.SH SECURITY
Some of the commands offered by nxcmd could potentially make your alarm system slightly less secure, while offering convenience of being able to remotely control the system. NX-584 interface configuration determines which (if any) of these commands will be available.
Relevant commands to enable (in NX-584 configuration) for full functionaliy are the following:
.IP \[bu] 2
Secondary Keypad Function (3Eh)
.IP \[bu]
Primary Keypad Function with PIN (3Ch)
.IP \[bu]
Send X-10 Message (28h)
.IP \[bu]
Send Keypad Text Message (2Bh) & Keypad Terminal Mode Request (2Ch)
.IP \[bu]
Program Data Request (30h)
.IP \[bu]
Program Data Command (31h)
.SH "SEE ALSO"
nxgipd(1) nxstat(1)
.SH AUTHOR
Timo Kokkonen <[email protected]>
.SH COPYING
Copyright (C) 2009-2015 Timo Kokkonen
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.