LinuxMCE Forums
May 21, 2013, 12:17:06 pm GMT-1 *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Rule #1 - Be Patient - Rule #2 - Don't ask when, if you don't contribute - Rule #3 - You have coding skills - LinuxMCE's small brother is available: http://www.agocontrol.com
 
   Home   Help Search Chat Login Register  
Pages: [1] 2 3 ... 11
  Print  
Author Topic: New Z-Wave driver  (Read 28382 times)
hari
Administrator
LinuxMCE God
*****
Posts: 2413



View Profile WWW
« on: September 09, 2008, 11:10:50 pm »

Hi there,

a 32bit binary of the new Z-Wave driver can be found here: http://vt100.at/files/ZWave-0.0.1-0710-32bit.bz2
Just swap with the existing /usr/pluto/bin/ZWave and quick reload the router.

Feedback appreciated,

best regards,
Hari
Logged

rock your home - http://www.agocontrol.com home automation
itspac
Veteran
***
Posts: 136


View Profile
« Reply #1 on: September 10, 2008, 02:17:13 pm »

ill try it this weekend
Logged
hari
Administrator
LinuxMCE God
*****
Posts: 2413



View Profile WWW
« Reply #2 on: September 10, 2008, 04:35:11 pm »

cool!

br, Hari
Logged

rock your home - http://www.agocontrol.com home automation
itspac
Veteran
***
Posts: 136


View Profile
« Reply #3 on: September 12, 2008, 11:02:00 pm »

well, I dont have many devices yet, but it seems to be faster, I'll be added more devices in the near future
Logged
Domodude
Guest
« Reply #4 on: September 15, 2008, 09:48:24 pm »

a 32bit binary of the new Z-Wave driver can be found

I _so_ would like to try it, but I am currently running 64-bit. As soon as the merge is done, and there is a source that can compile, that will be the VERY first thing I will change on my system!

Hari, did you get your Merten stick? If not, I could probably lend you mine for  awhile...
Logged
LegoGT
Regular Poster
**
Posts: 29


View Profile WWW
« Reply #5 on: October 01, 2008, 11:14:11 pm »

I finally got a chance to try out the new driver and it seems to work perfectly... very fast. When I plugged in my ZWave dongle (the USB HA22 from Intermatic) the setup wizard never asked me to copy my devices over (from the HA07). I just had to send the command from the Admin panel, manually. I'm not sure if that's intentional but other than that it works great.

In case you're curious, I'm using a random assortment of Leviton and Intermatic lamp modules and dimmers. All seem to work just fine.

Nice work, Hari!
Logged

A brain dump of my neverending projects: http://MediumRareBrain.com
tschak909
LinuxMCE God
****
Posts: 5101

DOES work for LinuxMCE.


View Profile
« Reply #6 on: October 02, 2008, 02:37:47 pm »

I second that, Hari.

You rock the Casbah.

-Thom
Logged
hari
Administrator
LinuxMCE God
*****
Posts: 2413



View Profile WWW
« Reply #7 on: October 02, 2008, 03:51:51 pm »

you're welcome!

The intermatic thermostat will be added soon. I think we have a pretty solid Z-Wave support for now. Of course, the code has still some ugly lines, too. But it is only a bit more than 10% of the old code and much better readable (in my eyes *lol*). Inline documentation will follow, somebody interested in becoming "the second z-wave guy"?

br, Hari
Logged

rock your home - http://www.agocontrol.com home automation
yannko
Regular Poster
**
Posts: 22


View Profile
« Reply #8 on: October 31, 2008, 02:21:57 pm »

Hello,

First, thanks for the new version of this driver. I actually have an issue with a Seluxit ViaSens Homecontroller, it's well detected by the system as well as in the pluto admin, but I can't communicate with the device.
Switching ON/OFF/50% a dimmer in the light menu results with no action, it seems that no message is sent through the system.

A lsusb shows up the correct device:

Code:
Bus 002 Device 009: ID 16c0:06eb

A dmesg brings the following output:

Code:
[ 7529.677639] usb 2-1: new full speed USB device using uhci_hcd and address 7
[ 7529.852890] usb 2-1: configuration #1 chosen from 1 choice
[ 7529.855858] /build/buildd/linux-source-2.6.22-2.6.22/drivers/usb/class/cdc-acm.c: This device cannot do calls on its own. It is no modem.
[ 7529.855869] cdc_acm 2-1:1.0: ttyACM0: USB ACM device

And the ZWave command gives the following:

Code:
ZWave, v.<=version=>
Visit www.plutohome.com for source code and license information

01 10/31/08 14:14:08.549 ZWaveSerial::Send m_iFrameID 1 type 0x0 command 0x15 didn't get ACK.  wait for rest <0xb694eb90>
01 10/31/08 14:14:09.300 ZWaveSerial::Send m_iFrameID 1 type 0x0 command 0x15 didn't get ACK.  wait for rest <0xb694eb90>
01 10/31/08 14:14:10.050 ZWaveSerial::Send m_iFrameID 1 type 0x0 command 0x15 didn't get ACK.  wait for rest <0xb694eb90>
01 10/31/08 14:14:10.085 ZWaveSerial::ReceiveData Checksum 234 != 0 size 16 offset 0 left 16 framesize 16 <0xb594cb90>
05 10/31/08 14:14:10.135 ZWaveSerial::ReceiveData skipping unknown 0x10 <0xb594cb90>
01 10/31/08 14:14:10.800 ZWaveSerial::Send m_iFrameID 1 type 0x0 command 0x15 expected 2 got ack 0 response 0 request 0 failed to get at time 3799 ack 0 <0xb694eb90>
01 10/31/08 14:14:10.800 ZWJob_GenericSendFrame::Run failed to run job #0 P:1 ZWJob_Initialize:init type 0x0 command 0x15 abort 0 lower priority 0 retries 0 node 0 <0xb694eb90>
01 10/31/08 14:14:11.585 ZWaveSerial::Send m_iFrameID 2 type 0x0 command 0x20 didn't get ACK.  wait for rest <0xb694eb90>
01 10/31/08 14:14:12.335 ZWaveSerial::Send m_iFrameID 2 type 0x0 command 0x20 didn't get ACK.  wait for rest <0xb694eb90>
01 10/31/08 14:14:13.086 ZWaveSerial::Send m_iFrameID 2 type 0x0 command 0x20 didn't get ACK.  wait for rest <0xb694eb90>
01 10/31/08 14:14:13.836 ZWaveSerial::Send m_iFrameID 2 type 0x0 command 0x20 expected 2 got ack 0 response 0 request 0 failed to get at time 6835 ack 0 <0xb694eb90>
01 10/31/08 14:14:13.836 ZWJob_GenericSendFrame::Run failed to run job #0 P:1 ZWJob_Initialize:init type 0x0 command 0x20 abort 0 lower priority 0 retries 0 node 0 <0xb694eb90>

Any help very much appreciated, thanks for reading me!
Logged
hari
Administrator
LinuxMCE God
*****
Posts: 2413



View Profile WWW
« Reply #9 on: October 31, 2008, 09:25:52 pm »

Hi Yannko,

you are not running my driver. This seems to be the stock 0710 driver. Please enable log levels 36, 40 and 41 in /etc/pluto.conf. Quick reload the router, it should start the device automatically. Show me the output of /var/log/pluto/<your_device_id>_ZWave.log, where <your_device_id> is your device id in lmce.

best regards,
Hari
Logged

rock your home - http://www.agocontrol.com home automation
superfro
Regular Poster
**
Posts: 24


View Profile
« Reply #10 on: November 06, 2008, 06:44:00 am »

Hari, Are HSM100's supported?

I'm running the driver you have below iwth a intermatic ha22 ... I've followed the instructions for the ACT homepro motion detector... (http://wiki.linuxmce.com/index.php/ACT_Homepro_Motion_Detector) .... And I add items to my HA07 and copy them over, well the HSM100's don't get copied over... they don't show up in the z-wave log or on the admin web... I'm still installing new devices so I know the items are added to my network .... they just don't seem to be copying over...

seeing how there was debug info here http://wiki.linuxmce.com/index.php/ZWave_API#HSM100__.28battery.2C_temperature.2C_motion.2C_light.29  I had assumed these were supported.

Any help is appreciated...
Logged
hari
Administrator
LinuxMCE God
*****
Posts: 2413



View Profile WWW
« Reply #11 on: November 06, 2008, 09:40:17 am »

Hari, Are HSM100's supported?
not yet, but that should be an easy one.

Quote
I'm running the driver you have below iwth a intermatic ha22 ... I've followed the instructions for the ACT homepro motion detector... (http://wiki.linuxmce.com/index.php/ACT_Homepro_Motion_Detector) .... And I add items to my HA07 and copy them over, well the HSM100's don't get copied over... they don't show up in the z-wave log or on the admin web... I'm still installing new devices so I know the items are added to my network .... they just don't seem to be copying over...

seeing how there was debug info here http://wiki.linuxmce.com/index.php/ZWave_API#HSM100__.28battery.2C_temperature.2C_motion.2C_light.29  I had assumed these were supported.

Any help is appreciated...
For a first look i need the logfile of the ZWave device with loglevels 36, 40 and 41 activated.

Can you prepare SSH remote access for me?

best regards,
Hari
Logged

rock your home - http://www.agocontrol.com home automation
superfro
Regular Poster
**
Posts: 24


View Profile
« Reply #12 on: November 06, 2008, 05:36:30 pm »

Ahh, now that i enable the loglevels I see them appear in the logs as nodes 5,6,7,8 (i have 4 of them currently)....

Hari I will send you a pm right now with info for you to login remotely to my core... 

Thanks
Logged
superfro
Regular Poster
**
Posts: 24


View Profile
« Reply #13 on: November 06, 2008, 06:14:45 pm »

I had to send an email, it said you rejected pm's ....

Let me know if there is anything I can do.
Logged
yannko
Regular Poster
**
Posts: 22


View Profile
« Reply #14 on: November 06, 2008, 07:11:49 pm »

Hi Yannko,

you are not running my driver. This seems to be the stock 0710 driver. Please enable log levels 36, 40 and 41 in /etc/pluto.conf. Quick reload the router, it should start the device automatically. Show me the output of /var/log/pluto/<your_device_id>_ZWave.log, where <your_device_id> is your device id in lmce.

best regards,
Hari

Hi Hari,

Thanks a lot for your answer. I finally got the driver running, and the possibility to send commands to the nodes. Here is a snapshot of the log file:

Code:
05 11/06/08 18:54:02.946 Creating child 210 <0xb798b6c0>
05 11/06/08 18:54:02.946 Note: Device manager has attached a device of type 1820 that this has no custom event handler for.  It will not fire events. <0xb798b6c0>
05 11/06/08 18:54:02.947 Note: Device manager has attached a device of type 1820 that this has no custom handler for.  This is normal for IR. <0xb798b6c0>
05 11/06/08 18:54:02.947 Creating child 211 <0xb798b6c0>
05 11/06/08 18:54:02.947 Note: Device manager has attached a device of type 1922 that this has no custom event handler for.  It will not fire events. <0xb798b6c0>
05 11/06/08 18:54:02.947 Note: Device manager has attached a device of type 1922 that this has no custom handler for.  This is normal for IR. <0xb798b6c0>
05 11/06/08 18:54:02.947 Creating child 212 <0xb798b6c0>
05 11/06/08 18:54:02.947 Note: Device manager has attached a device of type 38 that this has no custom event handler for.  It will not fire events. <0xb798b6c0>
05 11/06/08 18:54:02.947 Note: Device manager has attached a device of type 38 that this has no custom handler for.  This is normal for IR. <0xb798b6c0>
05 11/06/08 18:54:02.947 Creating child 215 <0xb798b6c0>
05 11/06/08 18:54:02.947 Note: Device manager has attached a device of type 37 that this has no custom event handler for.  It will not fire events. <0xb798b6c0>
05 11/06/08 18:54:02.947 Note: Device manager has attached a device of type 37 that this has no custom handler for.  This is normal for IR. <0xb798b6c0>
36 11/06/08 18:54:04.535 No callback received: await_callback: 1 timer: 31 <0xb798ab90>
36 11/06/08 18:54:04.535 ERROR: Dropping command, no callback received after three resends <0xb798ab90>
40 11/06/08 18:54:04.635 Sending job 0x80831c0 (cb 0) - 0x1 0x4 0x0 0x41 0x1 0xbb (###A##) <0xb798ab90>
41 11/06/08 18:54:04.638 ACK RECEIVED <0xb798ab90>
41 11/06/08 18:54:04.641 0x1 0x9 0x1 0x41 0xd2 0x6 0x0 0x2 0x2 0x1 0x63 (###A######c) <0xb798ab90>
36 11/06/08 18:54:04.641 Got reply to FUNC_ID_ZW_GET_NODE_PROTOCOL_INFO: <0xb798ab90>
36 11/06/08 18:54:04.641 ***FOUND NODE: 1 <0xb798ab90>
36 11/06/08 18:54:04.641 listening node <0xb798ab90>
36 11/06/08 18:54:04.641 optional functionality <0xb798ab90>
36 11/06/08 18:54:04.641 BASIC TYPE: Static Controller <0xb798ab90>
36 11/06/08 18:54:04.641 GENERIC TYPE: Static Controller <0xb798ab90>
36 11/06/08 18:54:04.641 SPECIFIC TYPE: 1 <0xb798ab90>
40 11/06/08 18:54:04.740 Sending job 0x80833e0 (cb 0) - 0x1 0x4 0x0 0x41 0x2 0xb8 (###A##) <0xb798ab90>
41 11/06/08 18:54:04.741 ACK RECEIVED <0xb798ab90>
41 11/06/08 18:54:04.745 0x1 0x9 0x1 0x41 0xc9 0xc 0x0 0x4 0x11 0x1 0x67 (###A######g) <0xb798ab90>
36 11/06/08 18:54:04.745 Got reply to FUNC_ID_ZW_GET_NODE_PROTOCOL_INFO: <0xb798ab90>
36 11/06/08 18:54:04.745 ***FOUND NODE: 2 <0xb798ab90>
36 11/06/08 18:54:04.745 listening node <0xb798ab90>
36 11/06/08 18:54:04.745 optional functionality <0xb798ab90>
36 11/06/08 18:54:04.745 BASIC TYPE: Routing Slave <0xb798ab90>
36 11/06/08 18:54:04.745 GENERIC TYPE: Multilevel Switch <0xb798ab90>
36 11/06/08 18:54:04.745 SPECIFIC TYPE: 1 <0xb798ab90>

My question is now the following one: the messages from the USB controller to the devices are well interpreted by the orbiter (the lights icons are changing), but in the other direction it's not true (if I manually switch off a light which was on, it will still display that it's on). It's just showing what was the last light action from the USB control device. Is there a possibility to intercept messages in both directions, and to have them interpreted accordingly in Orbiter?

Thanks a lot for your help!
Logged
Pages: [1] 2 3 ... 11
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!