CM15pro/CM15a/CM15/CM19 direct compatibility with Vera3

Hi friends,
I thinks thats is the moment that our Veras support directly to CM15/CM19. I need know how can I tell to Micasaverde Development team that only it’s necessary insert the last mochad versión in the next release. We are a lot of users that have X10 tecnology and it’s very ease make this compatibility if they want make it. Only need compile that sourcer.
Please, I need that you link to me a this request. :'(. Please only put your request in this post.

Other than the Mochad daemon, is there anything else that’s required?

Only is need the daemon mochad and libusb-1.0-0-dev or libusb-1.0 (this lib, I think that your kernel must be incluided). For make call to daemon we use the command of mochad. With this 2 packages, we can connect CM11, CM15a, CM15pro, CM19 control for X10 devices without any other computer and other linux machines.
In this link, you can view how we can put in our Vera’s this compatibility. http://ignum.dl.sourceforge.net/project/mochad/README .
The mochad daemon not charge the CPU for the not X10 users, only charge in memory when you connect your CM1X. Almost, mochad don’t eat a lot of memory and CPUs in our Vera.

Please, if anybode know any other need that mochad can have to install in Vera, please make the consideration here.

Thanks a lot!!! ::slight_smile: ::slight_smile: ::slight_smile: ::slight_smile:
I’m very nervious!!! ;D :smiley:

Sorry, the netcat package por make command line control.

Thanks ;D

Hi mcvflorin,
Do you see possible this integration to the next firmware?
Can you give me your impression about this?

Thanks mcvflorin!!!

Adding it on Vera is a good idea, but I don’t think it will be in the next firmware.

OK!
Thanks for your help in this way and we waiting :-[ for the firmware with mochad server.

Please, if you will have any notice about the launch it, please inform us !!! ::slight_smile:

This would be a HUGE win for Vera! I still have X10 - mainly motion sensors since they work well and are dirt cheap. But yes, there are tons of people with tons of devices that Vera could capture as a new market… and then have a way to convert those people to Zwave as those people buy new devices and expand their systems.

I would love integrated X10 support - I have a CM12 (Which i think is the australian version of CM11) and a USB/Serial convertor cable which at the moment is confusing to get integrated (I 've tried to follow the instructions at
MiCasaVerde »Advanced » Programming » Plugins & Plugin Development » X10 CM11 Plug-in for Vera !)
but I can’t follow them

Hello,

You need to download and unzip the files from original thread here:
http://forum.micasaverde.com/index.php/topic,10817.0.html.

Ensure you have plugged in the USB cable as it requires a restart to be recognised.

For UI5.
In your broswer:
Goto APPS > Develop Apps > Luup Files
In the Upload Files section and select browse and select the unzipped files (for as many as there is).
At the bottom of the Upload Files section select the Restart Luup after upload checkbox and click Go.
You should see the words “uploaded complete” or similiar on the top of Upload Files section

Goto APPS > Develop Apps > Create Device
Enter the following details:
Description = X10 (or what you wish to call this)
Upnp Device Filename = D_CM11.xml
Upnp Implementation Filename = I_CM11.xml
Click Create Device

Wait for the system to restart and then click Reload again. Wait for the system to restart again.

Goto APPS > Develop Apps > Serial Port Configuration (note I am doing this blind)
You should see the USB device (what ever it may be called will depend on the type of USB)
Modify the setting as per instruction:
Serial Line settings:
Baud Rate: 4.800 bps
Parity: None
Data Bits: 8
Stop Bits: 1
In the bottom of the details set the Used by device to Description (X10 (or what called it))
Click Save

This is the starting point to see if it has correctly identify the USB to Serial adapter and you can only address this when you get to this point.

There are two alternatives to utilise X10 on your Vera that are discussed in the forum.
One is highlighted in the thread you identified (radarengineer in MOCHAD for Vera) and the other is the RFXCOM’s RFXtrx USB 433.

Good luck and I hope this assists you (and the details are correct).

Updated 20121104: to reflect correct link to original post and file location.

I installed the files and the device, restarted but syill got “If you connected the USB/serial device and it’s not displayed here, reload Luup. Not available.” when going to Serial port Config. When I plugged the USB into my PC I can controll light so my CM15pro works.
After insert the plug my VeraLite goes into include mode, is that normal? I’ve tried disconnect the power of the vera for complete startup.
Device, A1 and A2 are created. When I use one of the switches the error is port not found (obvious).

This topic (http://forum.micasaverde.com/index.php/topic,1471.0.html) is about USB-to-serial converter. Is that what’s missing? Because the CM15pro is a USB device I thought is not needed. Am I wrong?

/edit: I bought a FTDI serial <-> USB converter and got my CM11a working.

Thank you for your instructions, they were indeed correct. For me this was the end point, and I didn’t need to do anything else; my X 10 devices all showed up, without any more plug-ins, or configuration.

I was initially put off by having to mess around with the commandline options, but as soon as I plugged my USB to serial adapter (pl2303) in, it was detected by Vera automatically.

Note: if you have a bridged Vera, you must add that device by logging into the box that the USB to serial adapter is physically plugged into.

Another caveat: if you change the USB port that the serial adapter is plugged into, it is not enough to just delete and add a new device, you need to re-upload the files. In other words, follow Brientim’s instructions from the very beginning.

i’ve done everything as described by Brientim several times .I have no errors but when i use the switches A1 of A2 my lamp module don’t switches on or off.

what i am doing wrong? I have a CM11 connected via serial cable pl2303 from HQ. The supplier is sure that is working with the Vera lite.

I use a usb hub with a memory stick and and RFXCOM USB 433.92MHz receiver + transmitter and now also the cm11.

In the log files I only see the installation of the serial cable and the cm11 with no errors.

can i test the cm11 on the linux prompt putty? can I find some log files from the cm11 plugin?

Have you tried rebooting the Vera? I use the plugin with a bridged Vera and have scheduled a reboot with LUUP each night because it seems to stop working for some reason.

with a Ir command Center IR7243 it (command A1 off/on) works

In serproxy.log

I found this:

10/11/12 15:47:21 ===Setting up serproxy for port usb-rt3883-ehci-1.4/ftdi_sio on: /dev/ttyUSB0 device 93 netport 3481 baud 38400 N/8/1…

10/11/12 15:47:21 Downloaded http://127.0.0.1:3480/data_request?id=lu_variableget&DeviceNum=97&serviceId=urn:micasaverde-com:serviceId:HaDevice1&Variable=IOPort to /tmp/serproxy.10-11362 with /usr/bin/curl -k -s -S --fail --connect-timeout 5 --max-time 5 -o “/tmp/serproxy.10-11362” “http://127.0.0.1:3480/data_request?id=lu_variableget&DeviceNum=97&serviceId=urn:micasaverde-com:serviceId:HaDevice1&Variable=IOPort” Response 0

10/11/12 15:47:21 Downloaded http://127.0.0.1:3480/data_request?id=lu_variableget&DeviceNum=97&serviceId=urn:micasaverde-org:serviceId:SerialPort1&Variable=baud to /tmp/serproxy.11-11362 with /usr/bin/curl -k -s -S --fail --connect-timeout 5 --max-time 5 -o “/tmp/serproxy.11-11362” “http://127.0.0.1:3480/data_request?id=lu_variableget&DeviceNum=97&serviceId=urn:micasaverde-org:serviceId:SerialPort1&Variable=baud” Response 0

10/11/12 15:47:21 Downloaded http://127.0.0.1:3480/data_request?id=lu_variableget&DeviceNum=97&serviceId=urn:micasaverde-org:serviceId:SerialPort1&Variable=stopbits to /tmp/serproxy.12-11362 with /usr/bin/curl -k -s -S --fail --connect-timeout 5 --max-time 5 -o “/tmp/serproxy.12-11362” “http://127.0.0.1:3480/data_request?id=lu_variableget&DeviceNum=97&serviceId=urn:micasaverde-org:serviceId:SerialPort1&Variable=stopbits” Response 13312

10/11/12 15:47:21 Download failed

10/11/12 15:47:21 Downloaded http://127.0.0.1:3480/data_request?id=lu_variableget&DeviceNum=97&serviceId=urn:micasaverde-org:serviceId:SerialPort1&Variable=databits to /tmp/serproxy.13-11362 with /usr/bin/curl -k -s -S --fail --connect-timeout 5 --max-time 5 -o “/tmp/serproxy.13-11362” “http://127.0.0.1:3480/data_request?id=lu_variableget&DeviceNum=97&serviceId=urn:micasaverde-org:serviceId:SerialPort1&Variable=databits” Response 13312

10/11/12 15:47:21 Download failed

10/11/12 15:47:21 Downloaded http://127.0.0.1:3480/data_request?id=lu_variableget&DeviceNum=97&serviceId=urn:micasaverde-org:serviceId:SerialPort1&Variable=parity to /tmp/serproxy.14-11362 with /usr/bin/curl -k -s -S --fail --connect-timeout 5 --max-time 5 -o “/tmp/serproxy.14-11362” “http://127.0.0.1:3480/data_request?id=lu_variableget&DeviceNum=97&serviceId=urn:micasaverde-org:serviceId:SerialPort1&Variable=parity” Response 13312

10/11/12 15:47:21 Download failed

10/11/12 15:47:21 ===Setting up serproxy for port usb-rt3883-ehci-1.2/pl2303 on: /dev/ttyUSB1 device 97 netport 3482 baud 4800 N/8/1…

10/11/12 15:47:21 Running: ser2net -n -C “3481:raw:0:/dev/ttyUSB0:38400 1STOPBIT NONE” -C “3482:raw:0:/dev/ttyUSB1:4800 1STOPBIT NONE”

And now I found this:

LuaInterface::CallFunction-2 lu_incoming failed [string “…”]:36: attempt to index upvalue ‘cm11Lib’ (a nil value) <0x2daff680>

Perhaps someone can help me?

Peter,

I do not have the X10; however, I did try the setup for a test. It was very, very, temperamental if you did not set things exactly the first time. Any changes to the serial ports devices (unplugging and reinseting) does require a restart of your Vera so, if you unplugged the X10 interface, you needed to start again. From the first line in the log Baud rate 38400 whereby, it should be set at 4800.

What I would recommend is:
Delete device created devices.
Remove all the USB that you have plug in to your Vera.
Restart to clear Serial Devices.
Verify that the Serial Devices have been removed before progressing.

Edit:
see next post

@Peter

I have just re-read the thread and you already have the RFXCOM USB device (which has multiple uses including X10 for EU and AU). If you do have this and you are either in the EU or AU, you do not need the CM11 plug in. You can use the Rfxtrx plugin to add and control X10 devices. However, there is a small problem currently with the rfxtrx interface due to the current firmware 1.5408 which impact on the ability to add the device and would require a slight modification to the JSON file to enable the x10 devices to be added.

I just noticed the last few lines of your log and realised you have two USB devices recording failures so I gather you are encountering issues with both the CM11 and your RFXCOM USB device or you haven’t set the RFXCOM USB device for only the items you are using. Note: should be done via the software and not from your Vera. You can also test the X10 from the software to establish if it working correctly. However, you still have to set up the X10 devices in your Vera seperately.

If you retry from the start, I would turn on verbose logging (remember to turn it off when finished). Also during testing I would suggest the CM11 and the A1 device are placed right beside each other on the same circuit. “with a Ir command Center IR7243 it (command A1 off/on) works” this transmit to an IR another receiver in your home whereby the CM11 is over your powerline and there are many factors which can cause errors.

thank you Brientim for your help,

I use the cm11 voor units who are only working over powerline. There is no unit who’s translate’s the signals from powerline commands to rf x10 commands.
So i have too use the cm11. Or do you mean, i can use the rfxplugin(rfxtrx) to control the cm11 also?

And what do you mean by " should be done via the software and not from your Vera" ?
I have tested the cm11 with windows this week and under windows the cm11 works fine.

And if I can use the rfxpluging(rfxtrx) in stead of the cm11 plugin withs modification would be required to a the JSON file to enable the x10 devices to be added?

Are there commands I could use from the linux prompt to test if the cm11 and serial cable are working?

i wil trye the following:

Delete device created devices.
Remove all the USB that you have plug in to your Vera.
Restart to clear Serial Devices.
Verify that the Serial Devices have been removed before progressing.

Stil nothing happens, only in the log files: device 22 = cm11 en device 23 = virtual switch A1

09 10/13/12 15:51:08.518 JobHandler_LuaUPnP::Run device 22 CM11_Interface room 0 type urn:x10-com:device:controller:1 id parent 0/0x811100 upnp: 0 <0x2b821000>
09 10/13/12 15:51:08.519 JobHandler_LuaUPnP::Run device 21 pl2303 room 0 type urn:micasaverde-org:device:SerialPort:1 id usb-rt3883-ehci-1.2 parent 20/0x80ffd8 upnp: 0 <0x2b821000>
09 10/13/12 15:51:08.518 JobHandler_LuaUPnP::Run device 22 CM11_Interface room 0 type urn:x10-com:device:controller:1 id parent 0/0x811100 upnp: 0 <0x2b821000>
06 10/13/12 15:51:21.211 Device_Variable::m_szValue_set device: 22 service: urn:micasaverde-com:serviceId:CM11 variable: Incoming_CM11_buffer was: now: #hooks: 0 upnp: 0 v:(nil)/NONE duplicate:1 LEAK this:32768 start:86016 to 0xa3d000 <0x2bf55680>
06 10/13/12 15:51:21.211 Device_Variable::m_szValue_set device: 22 service: urn:micasaverde-com:serviceId:CM11 variable: Polling_status was: 0 now: 0 #hooks: 0 upnp: 0 v:(nil)/NONE duplicate:1 <0x2bf55680>
06 10/13/12 15:51:21.212 Device_Variable::m_szValue_set device: 22 service: urn:micasaverde-com:serviceId:CM11 variable: Buffer_CM11_no_bytes was: 0 now: 0 #hooks: 0 upnp: 0 v:(nil)/NONE duplicate:1 <0x2bf55680>
06 10/13/12 15:51:21.212 Device_Variable::m_szValue_set device: 22 service: urn:micasaverde-com:serviceId:CM11 variable: Processed_bytes was: 0 now: 0 #hooks: 0 upnp: 0 v:(nil)/NONE duplicate:1 <0x2bf55680>
06 10/13/12 15:51:21.212 Device_Variable::m_szValue_set device: 22 service: urn:micasaverde-com:serviceId:CM11 variable: old_funct_cmd was: now: #hooks: 0 upnp: 0 v:(nil)/NONE duplicate:1 <0x2bf55680>
06 10/13/12 15:51:21.212 Device_Variable::m_szValue_set device: 22 service: urn:micasaverde-com:serviceId:CM11 variable: old_addr_cmd was: now: #hooks: 0 upnp: 0 v:(nil)/NONE duplicate:1 <0x2bf55680>
02 10/13/12 15:51:23.102 ZW_Send_Data node 3 NO ROUTE (nil) <0x2c355680>
08 10/13/12 15:54:12.389 JobHandler_LuaUPnP::HandleActionRequest device: 23 service: urn:upnp-org:serviceId:SwitchPower1 action: SetTarget <0x2e555680>
08 10/13/12 15:54:12.389 JobHandler_LuaUPnP::HandleActionRequest argument DeviceNum=23 <0x2e555680>
08 10/13/12 15:54:12.390 JobHandler_LuaUPnP::HandleActionRequest argument serviceId=urn:upnp-org:serviceId:SwitchPower1 <0x2e555680>
08 10/13/12 15:54:12.390 JobHandler_LuaUPnP::HandleActionRequest argument action=SetTarget <0x2e555680>
08 10/13/12 15:54:12.390 JobHandler_LuaUPnP::HandleActionRequest argument newTargetValue=0 <0x2e555680>
08 10/13/12 15:54:12.390 JobHandler_LuaUPnP::HandleActionRequest argument rand=0.29910262674093246 <0x2e555680>
06 10/13/12 15:54:12.391 Device_Variable::m_szValue_set device: 23 service: urn:upnp-org:serviceId:SwitchPower1 variable: Status was: EMPTY now: 0 #hooks: 0 upnp: 0 v:0x829428/NONE duplicate:0 <0x2e555680>
08 10/13/12 15:54:15.317 JobHandler_LuaUPnP::HandleActionRequest device: 23 service: urn:upnp-org:serviceId:SwitchPower1 action: SetTarget <0x2e76f680>
08 10/13/12 15:54:15.318 JobHandler_LuaUPnP::HandleActionRequest argument DeviceNum=23 <0x2e76f680>
08 10/13/12 15:54:15.318 JobHandler_LuaUPnP::HandleActionRequest argument serviceId=urn:upnp-org:serviceId:SwitchPower1 <0x2e76f680>
08 10/13/12 15:54:15.318 JobHandler_LuaUPnP::HandleActionRequest argument action=SetTarget <0x2e76f680>
08 10/13/12 15:54:15.318 JobHandler_LuaUPnP::HandleActionRequest argument newTargetValue=1 <0x2e76f680>
08 10/13/12 15:54:15.319 JobHandler_LuaUPnP::HandleActionRequest argument rand=0.07120065204799175 <0x2e76f680>
06 10/13/12 15:54:15.440 Device_Variable::m_szValue_set device: 23 service: urn:upnp-org:serviceId:SwitchPower1 variable: Status was: 0 now: 1 #hooks: 0 upnp: 0 v:0x829428/NONE duplicate:0 <0x2e76f680>

and in the serproxy file:

10/13/12 15:36:26 Downloaded http://127.0.0.1:3480/data_request?id=lu_variableget&DeviceNum=21&serviceId=urn:micasaverde-com:serviceId:HaDevice1&Variable=IOPort to /tmp/serproxy.4-8695 with /usr/bin/curl -k -s -S --fail --connect-timeout 5 --max-time 5 -o “/tmp/serproxy.4-8695” “http://127.0.0.1:3480/data_request?id=lu_variableget&DeviceNum=21&serviceId=urn:micasaverde-com:serviceId:HaDevice1&Variable=IOPort” Response 0

10/13/12 15:36:27 Downloaded http://127.0.0.1:3480/data_request?id=lu_variableget&DeviceNum=21&serviceId=urn:micasaverde-org:serviceId:SerialPort1&Variable=baud to /tmp/serproxy.5-8695 with /usr/bin/curl -k -s -S --fail --connect-timeout 5 --max-time 5 -o “/tmp/serproxy.5-8695” “http://127.0.0.1:3480/data_request?id=lu_variableget&DeviceNum=21&serviceId=urn:micasaverde-org:serviceId:SerialPort1&Variable=baud” Response 0

10/13/12 15:36:27 Downloaded http://127.0.0.1:3480/data_request?id=lu_variableget&DeviceNum=21&serviceId=urn:micasaverde-org:serviceId:SerialPort1&Variable=stopbits to /tmp/serproxy.6-8695 with /usr/bin/curl -k -s -S --fail --connect-timeout 5 --max-time 5 -o “/tmp/serproxy.6-8695” “http://127.0.0.1:3480/data_request?id=lu_variableget&DeviceNum=21&serviceId=urn:micasaverde-org:serviceId:SerialPort1&Variable=stopbits” Response 13312

10/13/12 15:36:27 Download failed

10/13/12 15:36:27 Downloaded http://127.0.0.1:3480/data_request?id=lu_variableget&DeviceNum=21&serviceId=urn:micasaverde-org:serviceId:SerialPort1&Variable=databits to /tmp/serproxy.7-8695 with /usr/bin/curl -k -s -S --fail --connect-timeout 5 --max-time 5 -o “/tmp/serproxy.7-8695” “http://127.0.0.1:3480/data_request?id=lu_variableget&DeviceNum=21&serviceId=urn:micasaverde-org:serviceId:SerialPort1&Variable=databits” Response 13312

10/13/12 15:36:27 Download failed

10/13/12 15:36:27 Downloaded http://127.0.0.1:3480/data_request?id=lu_variableget&DeviceNum=21&serviceId=urn:micasaverde-org:serviceId:SerialPort1&Variable=parity to /tmp/serproxy.8-8695 with /usr/bin/curl -k -s -S --fail --connect-timeout 5 --max-time 5 -o “/tmp/serproxy.8-8695” “http://127.0.0.1:3480/data_request?id=lu_variableget&DeviceNum=21&serviceId=urn:micasaverde-org:serviceId:SerialPort1&Variable=parity” Response 13312

10/13/12 15:36:27 Download failed

10/13/12 15:36:27 ===Setting up serproxy for port usb-rt3883-ehci-1.2/pl2303 on: /dev/ttyUSB0 device 21 netport 3481 baud 4800 N/8/1…

10/13/12 15:36:27 Running: ser2net -n -C “3481:raw:0:/dev/ttyUSB0:4800 1STOPBIT NONE”

Hello Peter,

You’re welcome, but save the thanks until we get through this one way or another. I gather your in the EU “voor” indicates Netherlands/Belgium, so I will identify the x10 device from that region.

[Quote]I use the cm11 voor units who are only working over powerline. There is no unit who’s translate’s the signals from powerline commands to rf x10 commands.
So i have too use the cm11. Or do you mean, i can use the rfxplugin(rfxtrx) to control the cm11 also?[/quote]
The RFXCOM USB can not talk directly to the CM11 but to a X10 transceiver/receiver such as the TM13 or CM15 see:
http://www.marmitek.com/en/product-details/home-automation-security/x-10-home-automation/transceivers/tm13.php

[Quote]And what do you mean by " should be done via the software and not from your Vera" ?
[/quote]
I was referring to setting the RFXCOM USB configuration and what type of device it can communicate with. You do this with the software you download from their RFXCOM.com site with the USB plugged directly into your computer and not utilizing the rfxtrx plugin.

I have tested the cm11 with windows this week and under windows the cm11 works fine.
When you performed this test was the cm11 plugged into the same PowerPoint as it is with the Vera? If not, are you able to move your Vera and cm11 to the same PowerPoint and test?

Reviewing the logs below it appears the CM11 is working… Just not communicating. The other errors in the serproxy log I suggest are the RFXCOM USB. This is identified by the different USB ports. 3480 allocated to the RFXCOM USB and 3481 allocated to the cm11.
Did you try plugin the cm11 and the device set to A1 side by side into the a power strip or double wall outlet?

I will have a look at little later at this and it will only be minor. It is only affected with the current firmware 1.5408.