Hi Eric, glad it's working! Yahoo Mail: Search, Organize, Conquer On Sat, Jul 27, 2024 at 2:05 PM, Eric L. Edbergericledberg@users.sourceforge.net wrote: Steve Porter: Thanks for updating Mochad to v21. I decided to begin the process of moving mochad from my legacy RPI 2B which has been running reliably for 5 years with mochad 1.0-17. Tried compiling it on my new RPI 5 which failed due to the errors you fixed. I use a custom shell script to monitor the output of mochad, parse it's results, and trigger...
Steve Porter: Thanks for updating Mochad to v21. I decided to begin the process of moving mochad from my legacy RPI 2B which has been running reliably for 5 years with mochad 1.0-17. Tried compiling it on my new RPI 5 which failed due to the errors you fixed. I use a custom shell script to monitor the output of mochad, parse it's results, and trigger a remote (WebThing) action when X10 button presses are obtained. It's worked flawlessly for many years and mochad continues to work. I've also use Home...
A couple of questions... I'm trying to compile on a Raspberry Pi 4 running Openhab 4. ./configure shows some problems: openhabian@openhabian:/home/mochad $ sudo ./configure checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes /home/mochad/missing: Unknown `--is-lightweight' option Try `/home/mochad/missing --help' for more information configure: WARNING: 'missing' script is too old or missing checking for a thread-safe mkdir -p... /usr/bin/mkdir...
Thanks for the info and feedback Dustin! Steve Sent from Yahoo Mail on Android On Thu, Jul 20, 2023 at 2:38 PM, Dustin Boltondustout@users.sourceforge.net wrote: Just wanted to report that this still works and compiles fine with the latest Raspberry Pi OS version, Raspbian GNU/Linux 11 (bullseye), as of July 20, 2023. Thank you Steve for your work! Rasberry PI compile errors Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/mochad/discussion/1320002/ To unsubscribe...
Just wanted to report that this still works and compiles fine using your instructions with the latest Raspberry Pi OS version, Raspbian GNU/Linux 11 (bullseye), as of July 20, 2023. Thank you Steve for your work!
Just wanted to report that this still works and compiles fine with the latest Raspberry Pi OS version, Raspbian GNU/Linux 11 (bullseye), as of July 20, 2023. Thank you Steve for your work!
Make returned an error status: collect2: error: ld returned Makefile 250 Raspberry Pi OS Any suggestions?
Rodrigo, thanks. I switched to using heyu to control my X10 devices, and that works well.
Timothy, try sending "rf" command instead of "pl". CM15 has both Power Line and RF interfaces but CM19 has only the RF. So, try the command: $ echo "rf a1 on" | nc -w 1 localhost 1099
Timothy, try sending "rf" command instead of "pl". CM15 has both Power Line and RF interfaces but CM19 has only de RF. So, try the command: $ echo "rf a1 on" | nc -w 1 localhost 1099
Just saw your message. Great news Peter! Good start to the new year 😁 Sent from Yahoo Mail on Android On Tue, Jan 3, 2023 at 7:42 AM, Peterpeter-grigalis@users.sourceforge.net wrote: I redid the upgrade and install 3 times and eventually the libusb install worked. So I no have working mochad!! Thanks Steve!! Rasberry PI compile errors Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/mochad/discussion/1320002/ To unsubscribe from further messages, please visit...
I redid the upgrade and install 3 times and eventually the libusb install worked. So I no have working mochad!! Thanks Steve!!
I redid the upgrade and install 3 times and eventually the libusb install worked. So I no have working mochad!! Thanks Steve!!
Hi Steve, Problems with usb... when i try to make I get the following message. Any suggestions? mochad.c:75:31: fatal error: libusb-1.0/libusb.h: No such file or directory include <libusb-1.0 libusb.h=""></libusb-1.0> Can you help? TIA Peter
If looking for a version of mochad that compiles with the latest build tools and that is compatible with systemd (Debian, Raspberry Pi OS, Armbian, etc.): install Steve Porter's version 0.1.21 or apply minimal patches to only two files of version 0.1.17 as explained here: Patching version 0.1.17 by mmauka. If IPV6 support is needed see version 0.1.19 by Neil Cherry. If compatibility with systemd is also needed , install a fork: sigmdel/mochad. More information in excruciating details at Mochad on...
I should add that I tried the mochad-master patch from 2016 and that didn't help. running sudo mochad -d will start it manually, but I don't think that's a fix.
I installed version 1.21 today and have the same problem. This patch didn't work for me, still getting usb failure. Is there a newer, working fix?
I installed v21 according to these instructions: sudo apt-get install update sudo apt-get upgrade sudo apt-get install libusb-1.0-0-dev Install mochad: (assuming mochad-0.1.21.tgz is in /home/pi/ ) tar xf /home/pi/mochad-0.1.21.tgz cd /home/pi/mochad-0.1.21 ./configure make sudo make install Connect the CM15Pro with your Rasp with the USB interface. Command line to test: $ echo "pl a1 on" | nc -w 1 localhost 1099 with no errors on installation, then plugged in my CM19. The test line given returned...
Check here for more info: www.triggercmd.com/forum/topic/1927/command-format-on-raspi/25 Got it all working tonight. YAY! Thanks again guys. Just to get it all in one place, here's what works for me: /root/.TRIGGERcmdData/commands.json {"trigger":"Living Room Fan","command":"/home/pi/scripts/X10.sh i6","ground":"background","voice":"Living Room Fan","allowParams": "true"}, (duplicated for each X10 house unit, i.e. i6, i5, etc.) Script: "/home/pi/scripts/X10.sh i6" echo "pl $1 $2" | nc -w 1 localhost...
Hi Sean, glad you're able to use my efforts! Not allot of folks out there are still trying to use X10 still, but I still love it. To answer your question: YES! I can go through my setup for you, don't know if it's going to be the right place to do it. But here goes.... I use Alexa for all my timing and routines. Things like "Alexa, turn on the living room fan", which is using X10 relay wall switch. I also have a ton of "smart" light bulbes and wall "warts" (on/off). All my porch lights, living room...
Hi Sean, glad you're able to use my efforts! Not allot of folks out there are still trying to use X10 still, but I still love it. To answer your question: YES! I can go through my setup for you, don't know if it's going to be the right place to do it. But here goes.... I use Alexa for all my timing and routines. Things like "Alexa, turn on the living room fan", which is using X10 relay wall switch. I also have a ton of "smart" light bulbes and wall "warts" (on/off). All my porch lights, living room...
Thank you. Your instructions were very helpful. I am a novice and was able to get it up an running. Is there a way to set auto on and off functions for lights?
Don't forget this: Before you connect the CM15Pro with your Rasp. Enter the following commands: sudo apt-get install update sudo apt-get upgrade sudo apt-get install libusb-1.0-0-dev Install mochad: (assuming mochad-0.1.21.tgz is in /home/pi/ ) tar xf /home/pi/mochad-0.1.21.tgz cd /home/pi/mochad-0.1.21 ./configure make sudo make install Connect the CM15Pro with your Rasp with the USB interface. Command line to test: $ echo "pl a1 on" | nc -w 1 localhost 1099
Don't forget this: Before you connect the CM15Pro with your Rasp. Enter the following commands: sudo apt-get install update sudo apt-get upgrade sudo apt-get install libusb-1.0-0-dev Install mochad: (assuming mochad-0.1.21.tgz is in home/pi/ ) tar xf /home/pi/mochad-0.1.21.tgz cd /home/pi/mochad-0.1.21 ./configure make sudo make install Connect the CM15Pro with your Rasp with the USB interface. Command line to test: $ echo "pl a1 on" | nc -w 1 localhost 1099
Don't forget this: Before you connect the CM15Pro with your Rasp. Enter the following commands: sudo apt-get install update sudo apt-get upgrade sudo apt-get install libusb-1.0-0-dev Install mochad: tar xf /home/pi/mochad-0.1.21.tgz cd /home/pi/mochad-0.1.21 ./configure make sudo make install Connect the CM15Pro with your Rasp with the USB interface. Command line to test: $ echo "pl a1 on" | nc -w 1 localhost 1099
Hey everyone, I tried to compile mochad-0.1.17 on current Rasberry PI 4. Does not compile due to tons of duplicate declaration errors. So.... I've fixed all the critical errors and also added J. Jones' int fix: https://sourceforge.net/p/mochad/discussion/1320002/thread/582c852aa0/ I bumped it to mochad-0.1.21 (I've heard rumblings of version 0.1.19 floating around somewhere). I've commented every change I made, and updated the change log. And now includes "mochad.h". Compiles great and works without...
Hello everyone. I'm trying to install mochad on debian 11.2 bulleyes, and then try an integration with homeassistant but I can't get past the make phase. It gives me an error. Tested with sudo and root Running ./autogen.sh outputs all of this: Generating configuration files for mochad, please wait.... running aclocal ... running automake --add-missing --copy ... running autoconf ... checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking...
Since ubuntu 18 the udev process kills mochad after it ran for 'n' seconds. Somewhere (GIMF) I found these substitutes and changed the paths to Ubuntu whereabouts. change /etc/udev/rules.d/91-usb-x10-controllers.rules SUBSYSTEM=="usb", ATTR{idVendor}=="0bc7", ATTR{idProduct}=="0001", RUN+="/bin/systemctl start mochad" SUBSYSTEM=="usb", ATTR{idVendor}=="0bc7", ATTR{idProduct}=="0002", RUN+="/bin/systemctl start mochad" add new /etc/systemd/system/mochad.service [Unit] Description=Mochad X10 Daemon...
Old discussion. Came across it bashing my head on why Mochad installation did not work on my Raspbian. Was this never merged into the mainline? Patrick's fix seems OK, except for some minor issues: Missing a step 3.5, namely "cd mochad-master". At the end of make install, I got an error with "mochad[2530]: usb_claim_interface failed LIBUSB_ERROR_BUSY". However, rebooting the Pi made it go away, and works fine. As noted, one should not unplug/plug the X10 USB dongle. If you need to do so, reboot the...
Old discussion. Came across it bashing my head on why Mochad installation did not work on my Raspbian. Was this never merged into the mainline? Patrick's fix seems OK, except for some minor issues: Missing a step 3.5, namely "cd mochad-master". At the end of make install, I got an error with "mochad[2530]: usb_claim_interface failed LIBUSB_ERROR_BUSY". However, rebooting the Pi made it go away, and works fine. As noted, one should not unplug/plug the X10 USB dongle. If you need to do so, reboot the...
I am new to Mochad and trying to install on a new clean Ubuntu 20.10 VPS. When I try to compile it keeps giving errors. I have tried to follow the instructions on the readme and other threads with no luck. Below is the output from config.log if that helps at all. Any help would be appreciated. This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. It was created by mochad configure 0.1.17, which was generated by GNU Autoconf 2.69....
pi@raspberrypi:~/Downloads $ tar xzf mochad-...tar.gz tar (child): mochad-...tar.gz: Cannot open: No such file or directory The file is not there. Make sure it was downloaded and to where it was downloaded. ls -l ~/Downloads Make sure the size matches the original Carlos
I am trying to follow the instructions provided in the README file after downloading the mochad archive so I can control my X10 lights from my Alexa device installed on my RPi 4B. The files are in /home/pi/Downloads. First of all, I am rusty with myLinux so the fix is probably a very simple one. The commands are as follows... tar xzf mochad-...tar.gz cd mochad-... ./configure make sudo make install All the commands fail. The messages are as follows... pi@raspberrypi:~ $ cd /home/pi/Downloads pi@raspberrypi:~/Downloads...
Having trouble getting some light switches to work with Mochad. Mochad configuration Transponder - TM751 Transmitter - M19a Light Switch - WS467 Handheld remote - HR12A NC output on host: 11/27 10:59:26 Tx RF HouseUnit: C7 Func: On (WS467) 11/27 10:59:31 Tx RF HouseUnit: C7 Func: Off 11/27 10:59:33 Tx RF HouseUnit: C8 Func: On (WS467) 11/27 10:59:37 Tx RF HouseUnit: C8 Func: Off Result - no lights Working Light: 11/27 11:02:12 Tx RF HouseUnit: C1 Func: On (TM751) 11/27 11:02:15 Tx RF HouseUnit: C1...
I did a force install of libusb ignoring the libusbx dependency. Nothing seems to be broken , so I guess everything is ok. I might see a problem if I try to manually install mochad again, though, because the package I install shows a libusbx dependency.
I using mochad 0.1.17-1 with Arch Linux Arm. I tried to update my system software and got this message: installing libusb (1.0.23-3) breaks dependency 'libusbx' required by mochad I'm not clear on how mochad uses libusbx and whether forcing this installation of libusb will break mochad. Can anybody give me advice on how to get this to work?
Thanks for the feedback. Was able to verify Mochad worked as expected for basic on/off testing on the RPI and have moved on to thinking about how to manage mochad; am leaning toward using NodeJS since there are numerous TCP R/W stream examples around and it can emulate an http endpoint allowing me to use the Mozilla IOT -> HTTP add-on to initiate remote mochad commands. Also, the reference you provided above does not work, but I googled and found this discussion about the issue here: https://git...
Q1: No issues after that fix - been using fine for a while now Q2: Yes - you can mochad as your line listener It should work fine for what you are designing. I use an old (2012) X10-compatible Insteon hub (model# 2242-222) for web interface (because you get scheduling and easy add/remove interface built in), but easy enough and more fun to build your own! Good luck. On Thursday, June 11, 2020, 1:33:16 PM EDT, Eric L. Edberg <ericledberg@users.sourceforge.net> wrote: Hello: J. Jones... I recently...
Hello: J. Jones... I recently build a RPI 2B+ and am attempting to interface my Mozilla IOT gateway controller with Z-Wave devices to my legacy CM15 so it can control them too. I've built mochad and will attempt to plug the CM15 into my RPI soon but found this report when researching. Q: did you run into any issues with the "cast int" change or have any other hints about using mochad on a RPI? Q2: I don't know, but you might: Does the CM15 output/mirror X10 commands it detects into mochad? If I can...
Please fork mochad. mmauka seems MIA.
I am testing 0.1.17, and it looks like the port # (and probably listening address) are hard-coded. I would like to be able to set the port, listening interface, etc. Looking at the option parsing, I noticed it is using strcmp, which can be abused (since it's taking arbitrary user input from the command line), so it could use a security overhaul as well. I'd like to be able to contribute back any changes, that would hopefully merit a version bump, but don't know if they will be seen by the maintainer....
I know this is late and may seem stupid, but which version of Mochad are you using ? I had a similar problem which was solved with version 0.1.17. For some reason SourceForge still serves version 0.1.16 as the "lastest version".
I haven't found a way to make udev work. However, I added an entry in cron to start mochad on reboot. I'm not planning to disconnect the X10 interface so it should work. After several reboots mochad continues to start.
I read the post and understand most of what it says. :-) What is not clear to me is what should be included in the service file for systemd. I haven't done many services and what I have were based on samples.
@Bill I remember reading about udev replacement, googled "ubuntu 18.04 lts usb udev-rules not working" and found "https://ubuntuforums.org/showthread.php?t=2399943". Please post back!
Did some further testing this morning. Rebooted the system and all commands failed. Ran mochad using sudo and it started working again. Seems to be missing a "mochad.service" file for systemd. Does anyone have a working file that correctly starts mochad using systemd? When I check the status of the mochad service I get: sudo systemctl status mochad Unit mochad.service could not be found.
Did some further testing this morning. Rebooted the system and all commands failed. Ran mochad using sudo and it started working again. Seems to be missing a "mochad.service" file for systemd. Does anyone have a working file that correctly starts mochad using systemd?
Strange...I gave up testing for several hours and one of my lights came on after I stopped. Now when I send commands either through nc or via DomoticZ, the X10 switches work.
I was using mochad on an Ubuntu 16.04 LTS system that died recently. When I replaced it, I built the system using 18.04 LTS. Now, mochad doesn't seem to load when I plugin my CM19A. I can see that ubuntu recognizes it via lsusb. Bus 001 Device 013: ID 0bc7:0002 X10 Wireless Technology, Inc. Firecracker Interface (ACPI-compliant) Has anyone found a way to run it under 18.04? I found this post talking about the problem: https://www.domoticz.com/forum/viewtopic.php?t=24797 When I try the command echo...
I was using mochad on an Ubuntu 16.04 LTS system that died recently. When I replaced it, I built the system using 18.04 LTS. Now, mochad doesn't seem to load when I plugin my CM19A. I can see that ubuntu recognizes it via lsusb. Has anyone found a way to run it under 18.04? I found this post talking about the problem: https://www.domoticz.com/forum/viewtopic.php?t=24797 When I try the command echo "rf a1 on" | nc -w1 localhost 1099 I don't see any reaction by mochad.
I bought my first pi and tried setting up an X10 controller service. mochad seems to be the most used tool for driving the CM15a (and that is what I have). It compiled easily, but hung repeatedly just using basic "echo | nc" test commands... I straced and just saw a futex loop there, not very obvious what was happening. I got some parameter length complaint when it broke with sigterm. So, I looked at the way the author was interfacing through usblib (complicated stuff!) and found this function "libusb_fill_interrupt_transfer"...
I bought my first pi and tried setting up an X10 controller service. mochad seems to be the most used tool for driving the CM15a (and that is what I have). It compiled easily, but hung repeatedly just using basic "echo | nc" test commands... I straced and just saw a futex loop there, not very obvious what was happening. I got some parameter length complaint when it broke with sigterm. So, I looked at the way the author was interfacing through usblib (complicated stuff!) and found this function "libusb_fill_interrupt_transfer"...
I everybody, is it possible to install mochad on qnap nas. Thanks Jocas
I assume you asked because this is not working as expected. Have you made any progress? I am having the same problem.
I had this same issue and believe I found a workaround: You must turn off the CM15A...
I had this same issue and believe I found a workaround: You must turn off the CM15A...
Solved. I've found the way to hide the problem. I'm not a programmer, just know a...
if 0 case 0x5A: // CM15A internal RF to PL repeater is on so disable it dbprintf("Disabling...
Solved. I've found the way to hide the problem. I'm not a programmer, just know a...
Hi, this is munion. I'm using mochad with Domoticz to access from/to my X-10 devices....
When listening using "nc localhost 1099" (or 1100), should I be able to see things...
unable to get this to work, do I need to install a CM19a driver?
For me the same problem. Good to see that I am not the only one. I also have a problem...
OK, upon further investigation, I had it working after clearing the interfaces memory...
I had the same problem and Patrick's fix worked for me. Thanks!
I've been trying to get mochad running now for a couple of days at least. I've tried...
i try latest version mochad-0.1.17.tar.gz and still have this issue
I was facing the same problem, with CM15Pro, and raspberry / raspbian. Now, using...
Hi, I have a CM15U, rather than a CM15A it is picked up as: " ID 0bc7:0001 X10 Wireless...
Hi Jerevelan, in case you did not find a solution for your problem until now: mochad...
Release 0.1.17 second try
Release 0.1.17
I follow that mochad wiki for setup but it does not work Switch on can work, but...
Following up from a year ago.. I'm still finding that running mochad as a systemd...
I have mochad running on Debian with the CM15Pro. Regular LM12 and AM12 modules work...
I ran into the same issue. Vicente's comment helped me to identify and fix the issue....
I think I found the problem: The process started by the udev rule in fact acts as...
I have the same problem os Raspbian Jessie with a RPi1. What do you mean by running...
I am facing almost exactly the same problem on my Raspberry Pi 1, but using a CM15pro...
I have KR18 Fobs, they are similar to the KR10 but have an extra pair of On/Off buttons...
I installed latest mochad 0.0.16 on Ubuntu 14. Using default port 1099. Using CM15A...
Try Google: "CM11A protocol"
Hi, I a came accross Mochad since I was looking for a way to support my X10 devices...
Im using mochad on a raspberry pi and would like to know if I can trigger x10 commands...
I installed mochad on a new Raspberry Pi 2 running Raspian Jessie Lite; when I plug...
what do you get when you enter> ps -ef | grep moch Do you see this: afg 475 11452...
what do yoe get when you enter> ps -ef | grep moch Do you see this: afg 475 11452...
Hello, I find the same problem, (Could not find/open CM15A/CM19A -5 and same results...
afg@vm530:~$ less /etc/services afg@vm530:~$ grep 1099 /etc/services rmiregistry...
afg@vm530:~$ less /etc/services afg@vm530:~$ grep 1099 /etc/services rmiregistry...
Actually, that discussion on the Homeseer board is at the origin of my request (you...
I'm still a bit confused. You said in your OP that you want to restrict or disable...
Yes Woody, that's what I am trying to achieve. According to the data sheet of the...
So, by default, all of the commands that are seen on the RF interface are repeated...
I installed latest mochad 0.0.16 on Ubuntu 14. Using default port 1099. Using CM15A...
I have the same problem. The udev rule starts up mochad but it terminates. Running...
I have the same problem. The udev rule starts up mochad but it terminates. Running...