@@ -5,21 +5,27 @@ mochad stands for Multiple Online Controllers for Home Automation Daemon.
5
5
6
6
== Build it
7
7
8
- make builds mochad on Ubuntu 10.04 and 10.10. The libusb-1.0 development files
9
- are required. To install,
8
+ mochad compiles and runs on Ubuntu 10.04 and 10.10. The libusb-1.0 development
9
+ files are required. To install,
10
10
11
11
sudo apt-get install libusb-1.0-0-dev
12
12
13
- Building for embedded platforms such as OpenWrt is TBD .
13
+ The usual pattern for building the code applies .
14
14
15
- == Run it
15
+ tar xzf mochad-...tar.gz
16
+ cd mochad-...
17
+ ./configure
18
+ make
19
+ sudo make install
20
+
21
+ Please see http://sourceforge.net/apps/mediawiki/mochad/index.php?title=Main_Page
22
+ for details on building for OpenWrt.
16
23
17
- Connect CM15A or CM19A.
24
+ == Run it
18
25
19
- Run mochad as root (that is, sudo ./mochad). mochad will detach from the
20
- terminal and continue to run in the background. The only command line option so
21
- far is -d which will cause mochad to run in the foreground and produce debug
22
- output.
26
+ Plugging a CM15A or CM19A should launch mochad. There no need to run mochad
27
+ by hand or run it from /etc/rc.local. mochad is launched by a udev rule that
28
+ matches the CM15A and CM19A USB vendor and product ID codes.
23
29
24
30
== Use it
25
31
@@ -39,18 +45,18 @@ which remotes work from various locations.
39
45
40
46
Sample output:
41
47
42
- 12/07 20:49:10 Rx RF HouseUnit: C3 Func: Off
43
- 12/07 20:49:10 Tx PL HouseUnit: C3
44
- 12/07 20:49:10 Tx PL House: C Func: Off
45
- 12/07 20:49:10 Rx RF HouseUnit: C3 Func: Off
46
- 12/07 20:49:10 Tx PL HouseUnit: C3
47
- 12/07 20:49:10 Tx PL House: C Func: Off
48
- 12/07 20:49:17 Rx RFSEC Addr: 0x11 Func: Lights_Off_SH624
49
- 12/07 20:49:17 Rx RFSEC Addr: 0x11 Func: Lights_Off_SH624
50
- 12/07 20:49:37 Rx RFSEC Addr: C6:1B:00 Func: Motion_alert_MS10A
51
- 12/07 20:49:37 Rx RFSEC Addr: C6:1B:00 Func: Motion_alert_MS10A
52
- 12/07 20:49:37 Rx RFSEC Addr: C6:1B:00 Func: Motion_alert_MS10A
53
- 12/07 20:49:37 Rx RFSEC Addr: C6:1B:00 Func: Motion_alert_MS10A
48
+ 12/07 20:49:10 Rx RF HouseUnit: C3 Func: Off
49
+ 12/07 20:49:10 Tx PL HouseUnit: C3
50
+ 12/07 20:49:10 Tx PL House: C Func: Off
51
+ 12/07 20:49:10 Rx RF HouseUnit: C3 Func: Off
52
+ 12/07 20:49:10 Tx PL HouseUnit: C3
53
+ 12/07 20:49:10 Tx PL House: C Func: Off
54
+ 12/07 20:49:17 Rx RFSEC Addr: 0x11 Func: Lights_Off_SH624
55
+ 12/07 20:49:17 Rx RFSEC Addr: 0x11 Func: Lights_Off_SH624
56
+ 12/07 20:49:37 Rx RFSEC Addr: C6:1B:00 Func: Motion_alert_MS10A
57
+ 12/07 20:49:37 Rx RFSEC Addr: C6:1B:00 Func: Motion_alert_MS10A
58
+ 12/07 20:49:37 Rx RFSEC Addr: C6:1B:00 Func: Motion_alert_MS10A
59
+ 12/07 20:49:37 Rx RFSEC Addr: C6:1B:00 Func: Motion_alert_MS10A
54
60
55
61
Everything sent to netcat standard input is sent to mochad. The following is a
56
62
brief list of mochad commands.
@@ -142,6 +148,9 @@ For OpenWrt based systems, using LuCi would make more sense than Perl since
142
148
LuCi is already present in the system. However, the Perl CGI scripts work fine
143
149
with lighttpd on OpenWrt.
144
150
151
+ This project in not in any way affliated with X10 Corp. (www.x10.com). Do
152
+ not contact them about this driver since they know nothing about it.
153
+
145
154
== References
146
155
147
156
The following documents were useful in development of this program.
0 commit comments