SensorFlare / mochad

Mochad is an application that allows you to control your X10 smart devices over the Web. Sensorflare-mochad allows you to move on step forward by connecting your devices with the cloud using Sensorflare.
https://sensorflare.uservoice.com/knowledgebase/articles/482631-how-connect-x10-devices-to-sensorflare-using-mocha
GNU General Public License v3.0
10 stars 9 forks source link

nc: can't connect to remote host (127.0.0.1): Connection refused #1

Closed just4give closed 8 years ago

just4give commented 8 years ago

I have installed mochad on Intel Edison board. Installation went well but when ran sudo echo "rf a1 on" | nc localhost 1099, it threw error nc: can't connect to remote host (127.0.0.1): Connection refused Any idea why?

amaxilat commented 8 years ago

Can you confirm that the mochad daemon is running? You need to have a CM module connected to the usb for it to start automatically.

just4give commented 8 years ago

@amaxilat I have CM19a connected to Intel Edison. Is there any command to check if the daemon is actually running?

fullsizerender

just4give commented 8 years ago

Some more facts after further research

Tried to run mochad manually gives this error

Broadcast message from systemd-journald@gungunedison (Fri 2016-06-03 17:39:03 UTC):
mochad[867]: libusb_open_device_with_vid_pid failed
Broadcast message from systemd-journald@myedison (Fri 2016-06-03 17:39:03 UTC):
mochad[867]: Could not find/open CM15A/CM19A -5

Clearly it's problem with CM19A which is connected to usb. Then I issued lsusb which does not show CM19A Wireless device which is connected(prev image)

root@myedison:~# lsusb
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
root@myedison:~# lsusb -V
lsusb (usbutils) 007

At this moment , I am completely lost. Any help would be highly appreciated.

just4give commented 8 years ago

Finally solved the mystery ! It was power issue. I was powering my edison with 9v battery and the LED was consuming some power as well. dmesg | grep usb showed a low-powered usb device connected. Then I removed LED and powered with 12v DC supply. CM19a driver is recognized now.