ZXT-120

Others (MiLight, Hue, Toon etc...)

Moderator: leecollings

greenwitch
Posts: 24
Joined: Saturday 26 May 2018 18:30
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Contact:

Re: ZXT-120

Post by greenwitch »

Ben0it wrote: Friday 30 December 2016 20:53 ecific="6" type="General Thermostat V2" listening="true" frequentListening="false" beaming="true" routing="true" max_baud_rate="40000" version="4" sleep_after_send="20000" secured="true" query_stage="Complete">[/code]
I have crashes all the time when using this instruction. I cannot get it stable

Code: Select all

2018-06-14 22:36:17.118  Error: Domoticz received fatal signal 11 !...
2018-06-14 22:36:17.180  Error:   /home/pi/domoticz/domoticz() [0x263630]
2018-06-14 22:36:17.180  Error:   /home/pi/domoticz/domoticz(_Z14signal_handleri+0x4c) [0x2636e8]
2018-06-14 22:36:17.180  Error:   /lib/arm-linux-gnueabihf/libc.so.6(__default_sa_restorer+0) [0x76c6d6b0]
2018-06-14 22:36:17.180  Error:   /home/pi/domoticz/domoticz(_ZN9OpenZWave9ValueList8WriteXMLEP12TiXmlElement+0xbc) [0x7e6f78]
2018-06-14 22:36:17.180  Error:   /home/pi/domoticz/domoticz(_ZN9OpenZWave12CommandClass8WriteXMLEP12TiXmlElement+0x3c4) [0x822354]
2018-06-14 22:36:17.180  Error:   /home/pi/domoticz/domoticz(_ZN9OpenZWave12CentralScene8WriteXMLEP12TiXmlElement+0x14) [0x813c50]
2018-06-14 22:36:17.180  Error:   /home/pi/domoticz/domoticz(_ZN9OpenZWave4Node8WriteXMLEP12TiXmlElement+0xe7c) [0x808ac0]
2018-06-14 22:36:17.180  Error:   /home/pi/domoticz/domoticz(_ZN9OpenZWave6Driver11WriteConfigEv+0x218) [0x7f1a00]
2018-06-14 22:36:17.180  Error:   /home/pi/domoticz/domoticz(_ZN9OpenZWave7Manager11WriteConfigEj+0x1c) [0x7cf624]
2018-06-14 22:36:17.180  Error:   /home/pi/domoticz/domoticz(_ZN10COpenZWave21WriteControllerConfigEv+0x1c) [0x504584]
2018-06-14 22:36:17.180  Error:   /home/pi/domoticz/domoticz(_ZN10COpenZWave19OnZWaveNotificationEPKN9OpenZWave12NotificationE+0x1264) [0x517cdc]
2018-06-14 22:36:17.181  Error:   /home/pi/domoticz/domoticz(_ZN9OpenZWave7Manager14NotifyWatchersEPNS_12NotificationE+0x74) [0x7da808]
2018-06-14 22:36:17.181  Error:   /home/pi/domoticz/domoticz(_ZN9OpenZWave6Driver14NotifyWatchersEv+0xcc) [0x7f8b28]
2018-06-14 22:36:17.181  Error:   /home/pi/domoticz/domoticz(_ZN9OpenZWave6Driver16DriverThreadProcEPNS_5EventE+0x2a0) [0x801550]
2018-06-14 22:36:17.181  Error:   /home/pi/domoticz/domoticz(_ZN9OpenZWave10ThreadImpl3RunEv+0x20) [0x84ba98]
2018-06-14 22:36:17.181  Error:   /home/pi/domoticz/domoticz(_ZN9OpenZWave10ThreadImpl10ThreadProcEPv+0x8) [0x84bab4]
Any hints?

Ok, please verify my theory.

Code: Select all

diff --git a/config/zwcfg.xsd b/config/zwcfg.xsd
index ed9d20f..e32c9be 100644
--- a/config/zwcfg.xsd
+++ b/config/zwcfg.xsd
@@ -67,6 +67,7 @@
    <xs:attribute name='version' type='xs:string' use='optional'/>
    <xs:attribute name='query_stage' type='xs:string' use='optional'/>
    <xs:attribute name='security' use='optional'>
+   <xs:attribute name='sleep_after_send' use='optional'/>
     <xs:simpleType>
      <xs:restriction base='xs:string'>
       <xs:enumeration value='true'/>
+ <xs:attribute name='sleep_after_send' use='optional'/> is in wrong place. It should be before security line as next lines are describing possible values of security parameter.

Last point for me is to add manually line
<xs:attribute name='sleep_after_send' use='optional'/>
after line
<xs:attribute name='query_stage' type='xs:string' use='optional'/>
in domoticz/Config/zwcfg.xsd file. It seems that this corrections might take an effect. I will report in few days if crashes stopped.


Adam
greenwitch
Posts: 24
Joined: Saturday 26 May 2018 18:30
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Contact:

Re: ZXT-120

Post by greenwitch »

No it was not it:

Code: Select all

2018-07-04 06:17:02.402  Error: Domoticz received fatal signal 11 !...
2018-07-04 06:17:02.428  Error:   /home/pi/domoticz/domoticz() [0x262fa0]
2018-07-04 06:17:02.428  Error:   /home/pi/domoticz/domoticz(_Z14signal_handleri+0x4c) [0x263058]
2018-07-04 06:17:02.428  Error:   /lib/arm-linux-gnueabihf/libc.so.6(__default_sa_restorer+0) [0x76be96b0]
2018-07-04 06:17:02.428  Error:   /home/pi/domoticz/domoticz(_ZN9OpenZWave9ValueList8WriteXMLEP12TiXmlElement+0xbc) [0x7dff78]
2018-07-04 06:17:02.429  Error:   /home/pi/domoticz/domoticz(_ZN9OpenZWave12CommandClass8WriteXMLEP12TiXmlElement+0x3c4) [0x81b354]
2018-07-04 06:17:02.429  Error:   /home/pi/domoticz/domoticz(_ZN9OpenZWave12CentralScene8WriteXMLEP12TiXmlElement+0x14) [0x80cc50]
2018-07-04 06:17:02.429  Error:   /home/pi/domoticz/domoticz(_ZN9OpenZWave4Node8WriteXMLEP12TiXmlElement+0xe7c) [0x801ac0]
2018-07-04 06:17:02.429  Error:   /home/pi/domoticz/domoticz(_ZN9OpenZWave6Driver11WriteConfigEv+0x218) [0x7eaa00]
2018-07-04 06:17:02.429  Error:   /home/pi/domoticz/domoticz(_ZN9OpenZWave7Manager11WriteConfigEj+0x1c) [0x7c8624]
2018-07-04 06:17:02.429  Error:   /home/pi/domoticz/domoticz(_ZN10COpenZWave21WriteControllerConfigEv+0x1c) [0x4fed6c]
2018-07-04 06:17:02.429  Error:   /home/pi/domoticz/domoticz(_ZN10COpenZWave19OnZWaveNotificationEPKN9OpenZWave12NotificationE+0x1264) [0x51304c]
2018-07-04 06:17:02.429  Error:   /home/pi/domoticz/domoticz(_ZN9OpenZWave7Manager14NotifyWatchersEPNS_12NotificationE+0x74) [0x7d3808]
2018-07-04 06:17:02.429  Error:   /home/pi/domoticz/domoticz(_ZN9OpenZWave6Driver14NotifyWatchersEv+0xcc) [0x7f1b28]
2018-07-04 06:17:02.429  Error:   /home/pi/domoticz/domoticz(_ZN9OpenZWave6Driver16DriverThreadProcEPNS_5EventE+0x2a0) [0x7fa550]
2018-07-04 06:17:02.429  Error:   /home/pi/domoticz/domoticz(_ZN9OpenZWave10ThreadImpl3RunEv+0x20) [0x844a98]
2018-07-04 06:17:02.429  Error:   /home/pi/domoticz/domoticz(_ZN9OpenZWave10ThreadImpl10ThreadProcEPv+0x8) [0x844ab4]
Again the same crash.I will troubleshoot more
greenwitch
Posts: 24
Joined: Saturday 26 May 2018 18:30
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Contact:

Re: ZXT-120

Post by greenwitch »

And another crash.

Code: Select all

2018-07-04 23:43:25.081 Detail, Node012,   Received: 0x01, 0x0b, 0x00, 0x04, 0x00, 0x0c, 0x05, 0x31, 0x05, 0x01, 0x01, 0x18, 0xd5
2018-07-04 23:43:25.081 Detail, 
2018-07-04 23:43:25.081 Info, Node012, Received SensorMultiLevel report from node 12, instance 1, Temperature: value=24C
2018-07-04 23:43:25.082 Detail, Node012, Refreshed Value: old value=24, new value=24, type=decimal
2018-07-04 23:43:25.082 Detail, Node012, Changes to this value are not verified
2018-07-04 23:43:25.082 Detail, Node012, Notification: ValueChanged
2018-07-04 23:43:37.149 Detail, Node013, Polling: COMMAND_CLASS_SWITCH_BINARY index = 0 instance = 1 (poll queue has 0 messages)
2018-07-04 23:43:37.149 Detail, Node013, Queuing (Poll) MultiChannel Encapsulated (instance=1): SwitchBinaryCmd_Get (Node=13): 0x01, 0x0d, 0x00, 0x13, 0x0d, 0x06, 0x60, 0x0d, 0x01, 0x01, 0x25, 0x02, 0x25, 0x9c, 0x19
2018-07-04 23:43:37.149 Detail, 
2018-07-04 23:43:37.149 Info, Node013, Sending (Poll) message (Callback ID=0x9c, Expected Reply=0x04) - MultiChannel Encapsulated (instance=1): SwitchBinaryCmd_Get (Node=13): 0x01, 0x0d, 0x00, 0x13, 0x0d, 0x06, 0x60, 0x0d, 0x01, 0x01, 0x25, 0x02, 0x25, 0x9c, 0x19
2018-07-04 23:43:37.157 Detail, Node013,   Received: 0x01, 0x04, 0x01, 0x13, 0x01, 0xe8
2018-07-04 23:43:37.157 Detail, Node013,   ZW_SEND_DATA delivered to Z-Wave stack
2018-07-04 23:43:37.175 Detail, Node013,   Received: 0x01, 0x07, 0x00, 0x13, 0x9c, 0x00, 0x00, 0x02, 0x75
2018-07-04 23:43:37.175 Detail, Node013,   ZW_SEND_DATA Request with callback ID 0x9c received (expected 0x9c)
2018-07-04 23:43:37.175 Info, Node013, Request RTT 26 Average Request RTT 26
2018-07-04 23:43:37.175 Detail,   Expected callbackId was received
2018-07-04 23:43:37.187 Detail, Node013,   Received: 0x01, 0x0d, 0x00, 0x04, 0x00, 0x0d, 0x07, 0x60, 0x0d, 0x01, 0x01, 0x25, 0x03, 0x00, 0xb7
2018-07-04 23:43:37.187 Detail, 
2018-07-04 23:43:37.187 Info, Node013, Response RTT 37 Average Response RTT 37
2018-07-04 23:43:37.187 Info, Node013, Received a MultiChannelEncap from node 13, endpoint 1 for Command Class COMMAND_CLASS_SWITCH_BINARY
2018-07-04 23:43:37.187 Info, Node013, Received SwitchBinary report from node 13: level=Off
2018-07-04 23:43:37.187 Detail, Node013, Refreshed Value: old value=false, new value=false, type=bool
2018-07-04 23:43:37.187 Detail, Node013, Changes to this value are not verified
2018-07-04 23:43:37.187 Detail, Node013,   Expected reply and command class was received
2018-07-04 23:43:37.187 Detail, Node013,   Message transaction complete
2018-07-04 23:43:37.187 Detail, 
2018-07-04 23:43:37.188 Detail, Node013, Removing current message
2018-07-04 23:43:37.188 Detail, Node013, Notification: ValueChanged
Nothing here for me that would give a clue about the reason of crash. Node 13 is Fibaro FGS212 and never before had any issue with it.

Code: Select all

2018-07-04 23:43:20.568  (Z wave) General/Thermostat Mode (Klimatyzacja tryb pracy)
2018-07-04 23:43:20.675  (Dzialka) General/kWh (Unknown)
2018-07-04 23:43:20.779  (Dzialka) Usage (Unknown)
2018-07-04 23:43:20.835  (Dzialka) General/kWh (Unknown)
2018-07-04 23:43:20.837  (Dzialka) Light/Switch (Unknown)
2018-07-04 23:43:24.376  (Dzialka) Usage (Unknown)
2018-07-04 23:43:24.454  (Dzialka) General/kWh (Unknown)
2018-07-04 23:43:24.455  (Dzialka) Light/Switch (Unknown)
2018-07-04 23:43:25.087  (Z wave) Temp (Kuchnia temperatura nad lodĂłwka)
2018-07-04 23:43:26.983  (Dzialka) General/kWh (Unknown)
2018-07-04 23:43:27.083  (Dzialka) Usage (Unknown)
2018-07-04 23:43:27.158  (Dzialka) General/kWh (Unknown)
2018-07-04 23:43:30.223  (Dzialka) General/kWh (Unknown)
2018-07-04 23:43:30.312  (Dzialka) Usage (Unknown)
2018-07-04 23:43:30.400  (Dzialka) General/kWh (Unknown)
2018-07-04 23:43:34.375  (Dzialka) Usage (Unknown)
2018-07-04 23:43:34.454  (Dzialka) General/kWh (Unknown)
2018-07-04 23:43:34.456  (Dzialka) Light/Switch (Unknown)
2018-07-04 23:43:36.543  (Dzialka) General/kWh (Unknown)
2018-07-04 23:43:36.634  (Dzialka) Usage (Unknown)
2018-07-04 23:43:36.714  (Dzialka) General/kWh (Unknown)
2018-07-04 23:43:37.191  Error: Domoticz received fatal signal 11 !...
2018-07-04 23:43:37.213  Error:   /home/pi/domoticz/domoticz() [0x262fa0]
2018-07-04 23:43:37.213  Error:   /home/pi/domoticz/domoticz(_Z14signal_handleri+0x4c) [0x263058]
2018-07-04 23:43:37.213  Error:   /lib/arm-linux-gnueabihf/libc.so.6(__default_sa_restorer+0) [0x76c5d6b0]
2018-07-04 23:43:37.213  Error:   /home/pi/domoticz/domoticz(_ZN9OpenZWave9ValueList8WriteXMLEP12TiXmlElement+0xbc) [0x7dff78]
2018-07-04 23:43:37.213  Error:   /home/pi/domoticz/domoticz(_ZN9OpenZWave12CommandClass8WriteXMLEP12TiXmlElement+0x3c4) [0x81b354]
2018-07-04 23:43:37.213  Error:   /home/pi/domoticz/domoticz(_ZN9OpenZWave12CentralScene8WriteXMLEP12TiXmlElement+0x14) [0x80cc50]
2018-07-04 23:43:37.213  Error:   /home/pi/domoticz/domoticz(_ZN9OpenZWave4Node8WriteXMLEP12TiXmlElement+0xe7c) [0x801ac0]
2018-07-04 23:43:37.213  Error:   /home/pi/domoticz/domoticz(_ZN9OpenZWave6Driver11WriteConfigEv+0x218) [0x7eaa00]
2018-07-04 23:43:37.213  Error:   /home/pi/domoticz/domoticz(_ZN9OpenZWave7Manager11WriteConfigEj+0x1c) [0x7c8624]
2018-07-04 23:43:37.213  Error:   /home/pi/domoticz/domoticz(_ZN10COpenZWave21WriteControllerConfigEv+0x1c) [0x4fed6c]
2018-07-04 23:43:37.213  Error:   /home/pi/domoticz/domoticz(_ZN10COpenZWave19OnZWaveNotificationEPKN9OpenZWave12NotificationE+0x1264) [0x51304c]
2018-07-04 23:43:37.213  Error:   /home/pi/domoticz/domoticz(_ZN9OpenZWave7Manager14NotifyWatchersEPNS_12NotificationE+0x74) [0x7d3808]
2018-07-04 23:43:37.213  Error:   /home/pi/domoticz/domoticz(_ZN9OpenZWave6Driver14NotifyWatchersEv+0xcc) [0x7f1b28]
2018-07-04 23:43:37.213  Error:   /home/pi/domoticz/domoticz(_ZN9OpenZWave6Driver16DriverThreadProcEPNS_5EventE+0x2a0) [0x7fa550]
2018-07-04 23:43:37.213  Error:   /home/pi/domoticz/domoticz(_ZN9OpenZWave10ThreadImpl3RunEv+0x20) [0x844a98]
2018-07-04 23:43:37.213  Error:   /home/pi/domoticz/domoticz(_ZN9OpenZWave10ThreadImpl10ThreadProcEPv+0x8) [0x844ab4]
greenwitch
Posts: 24
Joined: Saturday 26 May 2018 18:30
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Contact:

Re: ZXT-120

Post by greenwitch »

Hi,

I have found the solution. Crashes were not result of patch (which works great!!!)
It was due to different version of ozw which was less stable. I recommend to use 1.4.2888 from development branch.
To do it:

Code: Select all

cd /home/pi
git clone https://github.com/OpenZWave/open-zwave open-zwave-read-only
cd open-zwave-read-only
# put remotec-zxt120.diff in /home/pi/open-zwave-read-only folder
git checkout 54682370a134cbb77e66802ac112f80f5f0d5c9c # change version to 1.4.2888 dirty
git apply  /home/pi/open-zwave-read-only/remotec-zxt120.diff
make
and follow instruction from
https://www.domoticz.com/wiki/Raspberry ... rom_source


:-)
greenwitch
Posts: 24
Joined: Saturday 26 May 2018 18:30
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Contact:

Re: ZXT-120

Post by greenwitch »

Hi,

I have update diff script to work with openzwave 1.6.
Enjoy.

Adam
Attachments
remotec-zxt120-OZW-16.zip
(1.62 KiB) Downloaded 32 times
greenwitch
Posts: 24
Joined: Saturday 26 May 2018 18:30
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Contact:

Re: ZXT-120

Post by greenwitch »

Hi,

There was change in ozw 1.6 and there is only ozwcache_0xcfe3020d.xml which seems to be temporary file.
I cannot store sleepaftersend value in it.
Any hint how to solve this problem?

Adam
greenwitch
Posts: 24
Joined: Saturday 26 May 2018 18:30
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Contact:

Re: ZXT-120

Post by greenwitch »

OK,

I have evolved the patch and make it simpler.
As only ZXT-120 seems to have that problem I have hard coded in driver.cpp check that if node is zxt device than it adds 20000us before removing message. Works like a charm.

Please find attached diff file.

Adam
Attachments
ozw16zxtfix.zip
(568 Bytes) Downloaded 32 times
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest