Upgrade to 2.01 final - with UZB stick

Discussions about Z-Way software and Z-Wave technology in general
Post Reply
michap
Posts: 442
Joined: 26 Mar 2013 10:35
Contact:

Upgrade to 2.01 final - with UZB stick

Post by michap »

I use at one configuration Z-Way with UZB-stick (yes, with license ;) ...).
(Raspberry 2)

It was not a problem for older 2.01-rcxx, but upgrading to 2.01 final the Z-Wave binding is corrupt.

new installation (2.0.1) want to take dev/ttyAMA0
but for UZB stick it should be /dev/ttyACM0 - if I'm not wrong.

Old versions have checkt both devices, latest version will stop after ttyAMA0.

I can not change it in bindings - there will come up an error that
"Cannot start Z-Wave binding: Error: Binding with name 'zway' already exists" ("zway" is the name of binding)

Add a second binding and disable the first does not work too - I will get a security warning key mismatch.

Only way was to downgrade to previous version from backup.

BTW: I never had in this configuration a Razberry module... all the time the UZB stick.

Any idea, how I can change the port so that new version will work?

Thanks!
Michael
User avatar
PoltoS
Posts: 7579
Joined: 26 Jan 2011 19:36

Re: Upgrade to 2.01 final - with UZB stick

Post by PoltoS »

Starting from versions 2.0.0 Z-Wave Binding appeared and it always wanted the correct port. I think it you had two bindings or missed something, but it never checked both ports. If you are upgrading, all config should remain. If you are doing a fresh install, on Raspberry Pi it will assume ttyAMA0 (RaZberry). So, to use UZB1 you need to change ttyAMA0 to ttyACM0 (or ttyACMx if you have many dongles with similar CDC-ACM driver).

Sometimes on settings change Z-Wave Binding stops incorrectly (we are still not sure why it happens - digging) and it does not destroy old zway object. In that case you need change settings and restart full Z-Way (/etc/init.d/z-way-server restart)

What means "key mismatch"?
michap
Posts: 442
Joined: 26 Mar 2013 10:35
Contact:

Re: Upgrade to 2.01 final - with UZB stick

Post by michap »

Hi,

I made it just now again.

Same procedure - upgrading from 2.0.1-rc33 to 2.0.1 ACM0 is active:
before upgrade.JPG
before upgrade.JPG (38.54 KiB) Viewed 8671 times
After restart - no more network - wrong controller was taken AMA0:
after upgrade.JPG
after upgrade.JPG (119.01 KiB) Viewed 8671 times
Same image at binding in web interface as before (ACM0).

I could not edit it - no effect.

BUT: after clearing the AppCache in Firefox - I could edit the binding and after restart all was ok again.
It seems there are coming "wrong" values from AppCache.

---------------------
Old version:

Code: Select all

[2015-06-30 21:15:22.283] [I] [core] Executing script: /*** Z-Wave Binding module ******************************************************** ...
[2015-06-30 21:15:22.296] [I] [core] Instantiating module 2 from class ZWave
[2015-06-30 21:15:22.299] [I] [core] --- Starting module Z-Wave Network Access
...
[2015-06-30 21:15:22.474] [D] [zway] Opened device: /dev/ttyAMA0
[2015-06-30 21:15:22.475] [D] [zway] Worker thread successfully created
[2015-06-30 21:15:22.475] [D] [zway] Worker thread entry point
[2015-06-30 21:15:22.479] [I] [zway] Adding job: Get controller info and supported function classes
[2015-06-30 21:15:22.485] [D] [zway] SENDING: ( 01 03 00 07 FB )
[2015-06-30 21:15:22.687] [I] [zway] Job 0x07 (Get controller info and supported function classes): No ACK received before timeout
[2015-06-30 21:15:22.687] [D] [zway] SENDING: ( 01 03 00 07 FB )
[2015-06-30 21:15:22.889] [I] [zway] Job 0x07 (Get controller info and supported function classes): No ACK received before timeout
[2015-06-30 21:15:22.889] [D] [zway] SENDING: ( 01 03 00 07 FB )
[2015-06-30 21:15:23.091] [I] [zway] Job 0x07 (Get controller info and supported function classes): No ACK received before timeout
[2015-06-30 21:15:23.091] [W] [zway] Job 0x07 (Get controller info and supported function classes) dropped: too many resends
[2015-06-30 21:15:23.091] [D] [zway] Job 0x07 (Get controller info and supported function classes): fail
[2015-06-30 21:15:23.091] [C] [zway] Get Serial API Capabilities returned zero.
[2015-06-30 21:15:23.091] [I] [zway] Removing job: Get controller info and supported function classes
[2015-06-30 21:15:23.102] [D] [zway] Worker thread exit point
[2015-06-30 21:15:23.102] [D] [zway] Worker thread successfully finished
[2015-06-30 21:15:23.113] [I] [core] ---  clean up histories
[2015-06-30 21:15:23.454] [I] [core] ---  histories polled
[2015-06-30 21:15:23.456] [I] [core] Terminating Z-Wave binding
[2015-06-30 21:15:23.461] [E] [zway] SaveData will not save data since it wasn't loaded. This is to prevent data loss.
[2015-06-30 21:15:23.478] [I] [core] Notification: critical (z-wave): Cannot start Z-Wave binding: Error: Bad data - communication failed
...
[2015-06-30 21:15:23.482] [I] [core] Instantiating module 3 from class ZWave
[2015-06-30 21:15:23.483] [I] [core] --- Starting module Z-Wave Network Access
...
[2015-06-30 21:15:23.557] [D] [zway] Opened device: /dev/ttyACM0
[2015-06-30 21:15:23.557] [D] [zway] Worker thread successfully created
[2015-06-30 21:15:23.557] [D] [zway] Worker thread entry point

-> OK
Not clear what there happen - I never had installed two bindings, only this one for UZB stick.
Right - after installation I had no binding - maybe it was possible to add a valid binding - and the invalid (Razberry) was not deleted by software?
In such a case would be nice if installation could check - is Razberry (ttyAMA) present or not... ;)

Thank you for your help.

All other issues I had (security etc.) can not reproduce just now.

Michael
SgtBilko
Posts: 7
Joined: 16 Aug 2015 15:58

Re: Upgrade to 2.01 final - with UZB stick

Post by SgtBilko »

I have exactly the same problem. I have a clean install with 2.01 and a UZB

I have changed the value to ttyACM0 and ttyACMx in the Z-Wave Network Access SmartHome App and resarted every time /etc/init.d/z-way-server restart

I have cleared Appcahce and even switch browser to saffari. I have tried downgrading to v1.7.1

I would be grateful for any help
Thank you
michap
Posts: 442
Joined: 26 Mar 2013 10:35
Contact:

Re: Upgrade to 2.01 final - with UZB stick

Post by michap »

Check in Apps:
Do you have
Z-Wave Network Access uses app Z-Wave Network Access
Z-Wave binding uses app Z-Wave Network Access

And - maybe you have 2 apps with network access active?

Have you checked your boot log for ACM0 ?

Michael
SgtBilko
Posts: 7
Joined: 16 Aug 2015 15:58

Re: Upgrade to 2.01 final - with UZB stick

Post by SgtBilko »

Michael

Thank you very much. I had 2 instances of Z-Wave Network Access running.

Problem solved for me.
Post Reply