Author Topic: Supporting the ACT Solutions ZCU201 USB Z-wave Interface  (Read 49199 times)

totallymaxed

  • LinuxMCE God
  • ****
  • Posts: 4351
    • View Profile
    • Dianemo - at home with technology
Re: Supporting the ACT Solutions ZCU201 USB Z-wave Interface
« Reply #60 on: January 19, 2008, 09:06:56 pm »
Come to think of it....

I have not yet been able to get the floorplan function to work. I added my lights thorugh the "Download Config" route on the web admin site, and added the lights to my map. However, I see no lights on the map on orbiters!

Another thing: reaction to the web interface is sometimes quite slow, or the command does not get processed at all. To any of you experienced Z-wave users: Is that normal?

Thanks,
Mark


After adding your lights and then adding them to the lighting floorplan you must do a regen all. Then they should appear on the lighting floor plan.
Andy Herron,
Convergent Home Technologies Ltd
United Kingdom
@herron

Dianemo S Now Shipping on Ubuntu 12.04LTS
Build your system on the latest Ubuntu LTS OS Release!

Get a Dianemo S License: http://forum.linuxmce.org/index.php?topic=8880.0
iOS Orbiter: http://wiki.linuxmce.org/index.php/Dianemo_iOS_Orbiter
Follow us on Facebook: https://www.facebook.com/pages/Dianemo-Home-Automation/226019387454465

Sales & Info:
http://www.dianemo.co.uk

1audio

  • Addicted
  • *
  • Posts: 552
    • View Profile
Re: Supporting the ACT Solutions ZCU201 USB Z-wave Interface
« Reply #61 on: January 19, 2008, 09:28:55 pm »
ZWave for a single device should be pretty quick. However many devices responding or network problems will slow ZWave down to a crawl. Every device in the system needs to get from the controller to the device to be live or the system will stall looking for them. I usually get almost instant response.

Domodude

  • Guest
Re: Supporting the ACT Solutions ZCU201 USB Z-wave Interface
« Reply #62 on: January 19, 2008, 10:22:59 pm »
 >:(
I am not a happy camper. Got everything recognized, including the three dimmers, I put them on my floorplan, and I even have the option of selecting 10%, 20% etc.

That's the good new. Bad news is that  the dimming to let's say 20% didn't do anything at all to the light. So, just to make sure, I reset the dcerouter and regenerated all orbiters. But after that exercise, all three dimmers are gone.

Code: [Select]
Sat Jan 19 22:15:57 CET 2008 Restart
========== NEW LOG SECTION ==========
1 01/19/08 22:16:05 71 (spawning-device) Starting... 8
1 01/19/08 22:16:05 71 (spawning-device) Found /usr/pluto/bin/ZWave
05 01/19/08 22:16:08.322 Creating child 72 <0xb79186d0>
05 01/19/08 22:16:08.326 Note: Device manager has attached a device of type 1820 that this has no custom event handler for.  It will not fire events. <0xb79186d0>
05 01/19/08 22:16:08.326 Note: Device manager has attached a device of type 1820 that this has no custom handler for.  This is normal for IR. <0xb79186d0>
05 01/19/08 22:16:08.326 Creating child 80 <0xb79186d0>
05 01/19/08 22:16:08.326 Note: Device manager has attached a device of type 38 that this has no custom event handler for.  It will not fire events. <0xb79186d0>
05 01/19/08 22:16:08.326 Note: Device manager has attached a device of type 38 that this has no custom handler for.  This is normal for IR. <0xb79186d0>
05 01/19/08 22:16:08.326 Creating child 81 <0xb79186d0>
05 01/19/08 22:16:08.326 Note: Device manager has attached a device of type 38 that this has no custom event handler for.  It will not fire events. <0xb79186d0>
05 01/19/08 22:16:08.326 Note: Device manager has attached a device of type 38 that this has no custom handler for.  This is normal for IR. <0xb79186d0>
05 01/19/08 22:16:08.326 Creating child 82 <0xb79186d0>
05 01/19/08 22:16:08.326 Note: Device manager has attached a device of type 38 that this has no custom event handler for.  It will not fire events. <0xb79186d0>
05 01/19/08 22:16:08.326 Note: Device manager has attached a device of type 38 that this has no custom handler for.  This is normal for IR. <0xb79186d0>
05 01/19/08 22:17:42.016 Got a reload command from 0  <0xb5112b90>
05 01/19/08 22:17:42.519 void ClientSocket::Disconnect() on this socket: 0x809a1e8 (m_Socket: 7) <0xb79186d0>
Return code: 2
2 01/19/08 22:17:42 71 (spawning-device) Device requests restart... count=8/50 dev=71
Sat Jan 19 22:17:42 CET 2008 Restart
========== NEW LOG SECTION ==========
1 01/19/08 22:17:50 71 (spawning-device) Starting... 8
1 01/19/08 22:17:50 71 (spawning-device) Found /usr/pluto/bin/ZWave
05 01/19/08 22:17:57.040 ### Go to timeout queue <0xb68e2b90>
05 01/19/08 22:17:57.040 ### execute the next job from timeout queue <0xb68e2b90>
05 01/19/08 22:17:57.040 ZWJobInitialize::timeoutHandler <0xb68e2b90>
05 01/19/08 22:18:02.041 ### Go to timeout queue <0xb68e2b90>
05 01/19/08 22:18:02.041 ### execute the next job from timeout queue <0xb68e2b90>
05 01/19/08 22:18:02.041 ZWJobInitialize::timeoutHandler <0xb68e2b90>
05 01/19/08 22:18:03.610 Creating child 72 <0xb78e56d0>
05 01/19/08 22:18:03.610 Note: Device manager has attached a device of type 1820 that this has no custom event handler for.  It will not fire events. <0xb78e56d0>
05 01/19/08 22:18:03.610 Note: Device manager has attached a device of type 1820 that this has no custom handler for.  This is normal for IR. <0xb78e56d0>


I am stumped. What's going on here??
« Last Edit: January 19, 2008, 10:25:12 pm by Domodude »

1audio

  • Addicted
  • *
  • Posts: 552
    • View Profile
Re: Supporting the ACT Solutions ZCU201 USB Z-wave Interface
« Reply #63 on: January 19, 2008, 11:05:39 pm »
What do you see under lighting on the Web panel?

This is similar to the problem I have loosing a light form the system.

Domodude

  • Guest
Re: Supporting the ACT Solutions ZCU201 USB Z-wave Interface
« Reply #64 on: January 20, 2008, 11:27:29 am »
What do you see under lighting on the Web panel?
This is similar to the problem I have loosing a light form the system.
I saw no lights anymore on the web panel.

Yesterday, I again added all lights, and so far have all three lights in the system.

When I test it now, nothing is happening when I try to turn them on or off using an XP orbiter.
Checking the interface log shows problems connecting to the ttyS0 ZWave device, so I'm gonna see what will happen after a reboot. *hmm* Even though ZWave works sometimes, as far as I am concerned it is far from stable/predictable (at least with a RS232 interface).

Mark

Domodude

  • Guest
Re: Supporting the ACT Solutions ZCU201 USB Z-wave Interface
« Reply #65 on: January 20, 2008, 11:45:43 am »
I'm just wondering...
I frequently have no reaction to commands (mostly through the web page), but get the following in the log:
05   01/20/08 11:41:53.005      ### Go to timeout queue <0xb6977b90>
05   01/20/08 11:41:53.005      ### skip the next job from timeout queue <0xb6977b90>

What do those two lines mean? It looks like the command will just get skipped.

What also happens is that I try three commands fairly quickly after each other, and I only get the above two lines once.  ??? I'd expect at least six lines. Is there a way to get more verbose debugging output?

hari

  • Administrator
  • LinuxMCE God
  • *****
  • Posts: 2420
    • View Profile
    • ago control
Re: Supporting the ACT Solutions ZCU201 USB Z-wave Interface
« Reply #66 on: January 20, 2008, 11:53:17 am »
I'm just wondering...
I frequently have no reaction to commands (mostly through the web page), but get the following in the log:
05   01/20/08 11:41:53.005      ### Go to timeout queue <0xb6977b90>
05   01/20/08 11:41:53.005      ### skip the next job from timeout queue <0xb6977b90>

What do those two lines mean? It looks like the command will just get skipped.

What also happens is that I try three commands fairly quickly after each other, and I only get the above two lines once.  ??? I'd expect at least six lines. Is there a way to get more verbose debugging output?

hmm, your serial port seems strange. Please try to use a usb/rs232 adapter.

best regards,
Hari
rock your home - http://www.agocontrol.com home automation

Domodude

  • Guest
Re: Supporting the ACT Solutions ZCU201 USB Z-wave Interface
« Reply #67 on: January 20, 2008, 04:47:45 pm »
Well this is strange!  ::)

I installed LMCE on a different machine, that I was previously using as an MD. And guess what! It works.

The wizard did not initially recognize the RS232 interface, of course. So I skipped it initially, then I went to the web panel and manually added a Pluto/ZWave device. This recognized the interface, and immediately the video-Lady came on. Just to make sure, I reloaded the dcerouter anyway. I went back to the Setup Wizard through the orbiter, and it recognized my interface. What's more, it already knew that I have three lights. Is that cool or what?  8) Every step from that point on was easy and just *worked*. It's still working after a core reboot (that was a gamble on the other setup!).

So it seems that the ZCS201 is fully supported, obivously aside from the PnP-functionality.

It also seems that there are computers that have some sort of serial port stupidity going on that prevents proper communication. At the moment, I don't feel like investigating anymore. Perhaps later!

Cheers (I'm gonna have a beer!),

Mark

hari

  • Administrator
  • LinuxMCE God
  • *****
  • Posts: 2420
    • View Profile
    • ago control
Re: Supporting the ACT Solutions ZCU201 USB Z-wave Interface
« Reply #68 on: January 20, 2008, 07:37:24 pm »
It also seems that there are computers that have some sort of serial port stupidity going on that prevents proper communication. At the moment, I don't feel like investigating anymore. Perhaps later!
somehow i knew that ;) Do you provide power to the interface with a brick?

best regards,
Hari
rock your home - http://www.agocontrol.com home automation

Domodude

  • Guest
Re: Supporting the ACT Solutions ZCU201 USB Z-wave Interface
« Reply #69 on: January 20, 2008, 08:41:44 pm »
Yes, the RS232 version will not function without one. The USB version can be powered through USB.

totallymaxed

  • LinuxMCE God
  • ****
  • Posts: 4351
    • View Profile
    • Dianemo - at home with technology
Re: Supporting the ACT Solutions ZCU201 USB Z-wave Interface
« Reply #70 on: January 20, 2008, 09:32:18 pm »
Well this is strange!  ::)

I installed LMCE on a different machine, that I was previously using as an MD. And guess what! It works.

The wizard did not initially recognize the RS232 interface, of course. So I skipped it initially, then I went to the web panel and manually added a Pluto/ZWave device. This recognized the interface, and immediately the video-Lady came on. Just to make sure, I reloaded the dcerouter anyway. I went back to the Setup Wizard through the orbiter, and it recognized my interface. What's more, it already knew that I have three lights. Is that cool or what?  8) Every step from that point on was easy and just *worked*. It's still working after a core reboot (that was a gamble on the other setup!).

So it seems that the ZCS201 is fully supported, obivously aside from the PnP-functionality.

It also seems that there are computers that have some sort of serial port stupidity going on that prevents proper communication. At the moment, I don't feel like investigating anymore. Perhaps later!

Cheers (I'm gonna have a beer!),

Mark


Nice work Mark ;-)
Andy Herron,
Convergent Home Technologies Ltd
United Kingdom
@herron

Dianemo S Now Shipping on Ubuntu 12.04LTS
Build your system on the latest Ubuntu LTS OS Release!

Get a Dianemo S License: http://forum.linuxmce.org/index.php?topic=8880.0
iOS Orbiter: http://wiki.linuxmce.org/index.php/Dianemo_iOS_Orbiter
Follow us on Facebook: https://www.facebook.com/pages/Dianemo-Home-Automation/226019387454465

Sales & Info:
http://www.dianemo.co.uk

PeteK

  • Guru
  • ****
  • Posts: 408
    • View Profile
Re: Supporting the ACT Solutions ZCU201 USB Z-wave Interface
« Reply #71 on: January 21, 2008, 02:04:03 am »
Just out of curiosity, has anyone found a source for the ZCU101/ZCS101 U.S. Versions of these products?

hari

  • Administrator
  • LinuxMCE God
  • *****
  • Posts: 2420
    • View Profile
    • ago control
Re: Supporting the ACT Solutions ZCU201 USB Z-wave Interface
« Reply #72 on: January 21, 2008, 11:30:24 pm »
I did some munching to the spcp8x5 code and managed to compile and load the module on 0704. If somebody feels like sending me a ZCU201...

you can download the binary here: http://vt100.at/spcp8x5.ko

compile:
Code: [Select]
dcerouter_48407:/usr/src/spcp8x5# make
make -C /lib/modules/2.6.20-15-generic/build M=/usr/src/spcp8x5 modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.20-15-generic'
  CC [M]  /usr/src/spcp8x5/spcp8x5.o
  Building modules, stage 2.
  MODPOST 1 modules
  CC      /usr/src/spcp8x5/spcp8x5.mod.o
  LD [M]  /usr/src/spcp8x5/spcp8x5.ko
make[1]: Leaving directory `/usr/src/linux-headers-2.6.20-15-generic'
dcerouter_48407:/usr/src/spcp8x5#

dmesg:
Code: [Select]
[165370.468000] usbcore: registered new interface driver spcp8x5
[165370.468000] /usr/src/spcp8x5/spcp8x5.c: SPCP8x5 USB to serial adaptor driver v0.01

here is the patch:
Code: [Select]
diff -u spcp8x5.orig/spcp8x5.c spcp8x5/spcp8x5.c
--- spcp8x5.orig/spcp8x5.c      2006-09-11 08:26:50.000000000 +0200
+++ spcp8x5/spcp8x5.c   2008-01-21 23:17:37.000000000 +0100
@@ -34,7 +34,6 @@
 };
 
 static struct usb_driver spcp8x5_driver = {
-       .owner                          = THIS_MODULE,
        .name                           = "spcp8x5",
        .probe                          = usb_serial_probe,
        .disconnect             = usb_serial_disconnect,
@@ -43,7 +42,6 @@
 
 // All of the device info needed for the spcp8x5 SIO serial converter
 static struct usb_serial_device_type spcp8x5_device = {
-       .owner                          = THIS_MODULE,
        .name                           = "SPCP8x5",
        .id_table                       = id_table,
        .num_interrupt_in       = 0,
@@ -379,20 +377,16 @@
                tty_flag = TTY_FRAME;
        trace("tty_flag = %d\n",tty_flag);
 
-       tty = port->tty;
-       if (tty && urb->actual_length) {
-               // overrun is special, not associated with a char
-               if (status & UART_OVERRUN_ERROR)
-                       tty_insert_flip_char(tty, 0, TTY_OVERRUN);
-
-               for (i = 0; i < urb->actual_length; ++i) {
-                       if (tty->flip.count >= TTY_FLIPBUF_SIZE) {
-                               tty_flip_buffer_push(tty);
-                       }
-                       tty_insert_flip_char (tty, data[i], tty_flag);
-               }
-               tty_flip_buffer_push (tty);
-       }
+        tty = port->tty;
+        if (tty && urb->actual_length) {
+                tty_buffer_request_room(tty, urb->actual_length + 1);
+                /* overrun is special, not associated with a char */
+                if (status & UART_OVERRUN_ERROR)
+                        tty_insert_flip_char(tty, 0, TTY_OVERRUN);
+                for (i = 0; i < urb->actual_length; ++i)
+                        tty_insert_flip_char(tty, data[i], tty_flag);
+                tty_flip_buffer_push(tty);
+        }
 
        // Schedule the next read _if_ we are still open
        if (port->open_count) {
diff -u spcp8x5.orig/spcp8x5.h spcp8x5/spcp8x5.h
--- spcp8x5.orig/spcp8x5.h      2006-09-25 08:11:35.000000000 +0200
+++ spcp8x5/spcp8x5.h   2008-01-21 23:02:49.000000000 +0100
@@ -19,7 +19,6 @@
 #define SPCP8x5_835_VID                0x04fc
 #define SPCP8x5_835_PID                0x0231
 
-#include <linux/config.h>
 #include <linux/kernel.h>
 #include <linux/errno.h>
 #include <linux/init.h>
diff -u spcp8x5.orig/usb-serial.h spcp8x5/usb-serial.h
--- spcp8x5.orig/usb-serial.h   2004-12-24 22:35:50.000000000 +0100
+++ spcp8x5/usb-serial.h        2008-01-21 23:03:02.000000000 +0100
@@ -54,7 +54,6 @@
 #ifndef __LINUX_USB_SERIAL_H
 #define __LINUX_USB_SERIAL_H
 
-#include <linux/config.h>
 #include <linux/kref.h>
 
 #define SERIAL_TTY_MAJOR       188     /* Nice legal number now */
rock your home - http://www.agocontrol.com home automation

PeteK

  • Guru
  • ****
  • Posts: 408
    • View Profile
Re: Supporting the ACT Solutions ZCU201 USB Z-wave Interface
« Reply #73 on: January 22, 2008, 07:00:01 am »
Guys--

I've started to update the Wiki with the implementation details I learned from communicating with Eugen on the Pluto Zwave implementation and with with going over his code to create an Insteon PLC driver.  The code could use a clean up and a refresh to bring it up to the current Z-Wave standard of functionality and I think documenting its current fucntionality is a good first step.  I'll be adding more to it over the next few days.

http://wiki.linuxmce.org/index.php/ZWave#Implementation

If anyone has a ZCU201 and has any questions on the current implementation, I'll be glad to help.

-Pete

Domodude

  • Guest
Re: Supporting the ACT Solutions ZCU201 USB Z-wave Interface
« Reply #74 on: January 22, 2008, 10:44:14 am »
Hi,

Merten has a fairly substantial Z-wave product line, and on February 8th, a salesperson will come by and show me some of their stuff. I will let the forum know about current possibilities and issues. Merten also has a USB interface, I will check that one too (I'll probably need Hari's fresh hack  ;) ).

Mark