License upgrade fail: "Unable to upgrade capabilities"

Discussions about Z-Way software and Z-Wave technology in general
geirgp
Posts: 42
Joined: 22 Oct 2015 19:16

License upgrade fail: "Unable to upgrade capabilities"

Post by geirgp »

I received my ZWAY License today, and was looking forward to start playing with this controller.

However, my attempt to insert the license key through the z-way web interface is failing.

After typing the license key i hit "verify". It immediately responds with "License key successfully verified" and "Upgrading capabilities" with a spinning wheel next to it.

After about 10 seconds it displays "Unable to upgrade capabilities".

in the z-way log I found see this:

Code: Select all

[2015-11-07 11:26:50.208] [I] [zway] Adding job: Get or set Z-Wave.Me firmware capabilities
[2015-11-07 11:26:50.218] [D] [zway] SENDING (cb 0x05): ( ***** )
[2015-11-07 11:26:50.232] [D] [zway] RECEIVED ACK
[2015-11-07 11:26:50.233] [D] [zway] RECEIVED: ( ****  )
[2015-11-07 11:26:50.233] [D] [zway] SENT ACK
[2015-11-07 11:26:50.233] [I] [zway] Job 0xf5 (Get or set Z-Wave.Me firmware capabilities): In progress
[2015-11-07 11:26:58.924] [D] [zway] RECEIVED: ( ****  )
[2015-11-07 11:26:58.924] [D] [zway] SENT ACK
[2015-11-07 11:26:58.924] [I] [zway] Job 0xf5 (Get or set Z-Wave.Me firmware capabilities): Failed
[2015-11-07 11:26:58.924] [D] [zway] Job 0xf5 (Get or set Z-Wave.Me firmware capabilities): fail
[2015-11-07 11:26:58.924] [I] [zway] Removing job: Get or set Z-Wave.Me firmware capabilities
[2015-11-07 11:27:19.058] [D] [zway] Job 0xf5: deleted from queue
**** = stuff I masked as I'm not sure if it is specific to my license or not.

If I go to http://192.168.10.129:8083/expert/#/network/controller I get this:

Code: Select all

Role in Network

Node Id:	1
Home Id:	0xe6db25e1
Primary Role:	Yes
Primary Capability:	Yes
SUC/SIS in network:	1 (SIS)
Hardware

Vendor:	Z-Wave.Me
Vendors Product ID:	1024 / 1
Z-Wave Chip:	ZW0500
Firmware

Library Type:	Static Controller
SDK Version:	6.51.03
Serial API Version:	05.01
Z_Way Software Information

Version number:	v2.1.2-rc2
Compile-ID:	5001aad6461815ea3053446de965f443cfb45552
Compile-Date:	2015-09-14 03:08:06 +0300
UI

UI version	1.0.3
There is also a section "Functions" at the bottom:

Code: Select all

Functions:
SerialAPIGetInitData (0x02), SerialAPIApplicationNodeInformation (0x03), ApplicationCommandHandler (0x04), GetControllerCapabilities (0x05), SerialAPISetTimeouts (0x06), GetSerialAPICapabilities (0x07), SerialAPISoftReset (0x08), Not implemented (0x09), Not implemented (0x0a), Not implemented (0x10), Not implemented (0x11), SendNodeInformation (0x12), SendData (0x13), Not implemented (0x14), GetVersion (0x15), SendDataAbort (0x16), RFPowerLevelSet (0x17), Not implemented (0x18), Not implemented (0x1c), GetHomeId (0x20), MemoryGetByte (0x21), MemoryPutByte (0x22), MemoryGetBuffer (0x23), MemoryPutBuffer (0x24), FlashAutoProgSet (0x27), Not implemented (0x28), NVMGetId (0x29), NVMExtReadLongBuffer (0x2a), NVMExtWriteLongBuffer (0x2b), NVMExtReadLongByte (0x2c), NVMExtWriteLongByte (0x2d), GetNodeProtocolInformation (0x41), SetDefault (0x42), ReplicationReceiveComplete (0x44), Not implemented (0x45), AssignReturnRoute (0x46), DeleteReturnRoute (0x47), RequestNodeNeighbourUpdate (0x48), ApplicationNodeUpdate (0x49), AddNodeToNetwork (0x4a), RemoveNodeFromNetwork (0x4b), CreateNewPrimary (0x4c), ControllerChange (0x4d), SetLearnMode (0x50), AssignSUCReturnRoute (0x51), EnableSUC (0x52), RequestNetworkUpdate (0x53), SetSUCNodeId (0x54), DeleteSUCReturnRoute (0x55), GetSUCNodeId (0x56), SendSUCNodeId (0x57), Not implemented (0x5e), RequestNodeInformation (0x60), RemoveFailedNode (0x61), IsFailedNode (0x62), ReplaceFailedNode (0x63), Not implemented (0x66), Not implemented (0x67), Not implemented (0x78), GetRoutingTableLine (0x80), Not implemented (0x90), Not implemented (0x92), Not implemented (0x93), Not implemented (0x98), Not implemented (0xb4), Not implemented (0xb6), Not implemented (0xb7), Not implemented (0xb8), Not implemented (0xb9), RFPowerLevelGet (0xba), Not implemented (0xbd), SendTestFrame (0xbe), Not implemented (0xbf), WatchDogStart (0xd2), WatchDogStop (0xd3), Not implemented (0xd4), Not implemented (0xef), ZMEFreqChange (0xf2), ZMERestore (0xf3), ZMEBootloaderFlash (0xf4), ZMECapabilities (0xf5),
Note that "EnableSUC (0x52)" and "ZMERestore (0xf3)" are both in red text


Any thoughts?
Last edited by geirgp on 07 Nov 2015 00:32, edited 1 time in total.
geirgp
Posts: 42
Joined: 22 Oct 2015 19:16

Re: License upgrade fail: "Unable to upgrade capabilities"

Post by geirgp »

Aslo tried and failed with version 2.1.1 (previous attempt with 2.1.2-rc2)
User avatar
PoltoS
Posts: 7565
Joined: 26 Jan 2011 19:36

Re: License upgrade fail: "Unable to upgrade capabilities"

Post by PoltoS »

Your dongle have version 05.01. Pretty old. Please upgrade to a newer one. Make sure UID (also shown in the Expert UI) is same after upgrade (should remain same). After that try to upgrade again.

**** are specific for your license (based on UID). Non-specific is only the "Scractch ID" (code you enter in the UI). Keep it provite until usage (you have already used it - binded to your UID, so no need to keep it private anymore)
geirgp
Posts: 42
Joined: 22 Oct 2015 19:16

Re: License upgrade fail: "Unable to upgrade capabilities"

Post by geirgp »

Thanks for responding.

I have now upgraded the firmware to 05.04. Confirmed on the "Controller Info" -page : "Serial API Version: 05.04"

However, now I can't even get past the first stage of upgrading the license, I get "Unable to verify the License Key".

I opened the chrome developer console to see what was going on and found that the request to http://store.zwaveeurope.com/license/utility_uzb.php was sent with form data "uuid=00000000000000000000000000000000&scratch=***". ***= the license key gave it.

"000.." sounds pretty wrong to me so I restarted z-way, un/re-plugged the usb stick and performed a "Controller Factory Default". This time it sent a request which looked better (uuid=AE9A74798...&scratch=***) when I tried to do the license upgrade, yet still I get "Unable to verify the License Key".

I looked at the response from http://store.zwaveeurope.com/license/utility_uzb.php which was "AE9A****(uuid?) - 01FF**** (license?)". The response code was also 200, so to me it looks good but the z-way server complains and I see nothing in the server log: It doesn't attempt to send the key to the UZB1 stick, but I guess that makes sense when it reports problems verifying the license in the first place.

Can you offer any other pointers?

Thanks!

Geir
geirgp
Posts: 42
Joined: 22 Oct 2015 19:16

Re: License upgrade fail: "Unable to upgrade capabilities"

Post by geirgp »

I just compared the response from http://store.zwaveeurope.com/license/utility_uzb.php before and after the firmware upgrade and noticed a significant difference.

Before performing the upgrade the response was a JSON message:

Code: Select all

content": {
            "size": 276,
            "mimeType": "application/json",
            "compression": -12,
            "text": "{\"code\": 200, \"message\": \"License generated\", \"license\": [190, 219, 75, 106, 0, 95, 68, 139, 255, 64, 85, 189, 100, 73, 167, 79, 35,  ***]}"
          }
And after:

Code: Select all

"content": {
            "size": 67,
            "mimeType": "application/json",
            "compression": -11,
            "text": "AE9A7479*** - 01FF4E***"
          }
Also, and perhaps more alarming considering you mentioned that the scratch id is tied to my usb stick's uid, is that the uid is now DIFFERENT to what I recorded initially.
geirgp
Posts: 42
Joined: 22 Oct 2015 19:16

Re: License upgrade fail: "Unable to upgrade capabilities"

Post by geirgp »

I think I now understand a bit more of what is going on.

The response that z-way gets from http://store.zwaveeurope.com/license/utility_uzb.php when verifying license is no longer a json object with the license key, but instead the text "AE9A74798AAF92C441137*** - 01FF4EF3B0777576E1***".

AE9A74798AAF92C441137*** corresponds to the uuid that z-way sends to utility_uzb.php, and 01FF4EF3B0777576E1*** is the uuid that was used before I upgraded firmware and did the factory reset.
So I guess this is the server's way of saying "bugger off, this license is already used by another uzb1 stick with uuid "01FF4EF3B0777576E1***".

How come the uuid of my stick has changed? How can this be fixed?

And no, I haven't been mixing uzb1 sticks (I have only 1).

Here's a list of things I've been doing since the first failed attempt
* Tried different version of z-way server
* Use the stick on different pc's :
* first attempt on virtualbox inside osx host with serial port forwarded (ser2net)
* second attempt on virtualbox inside osx host with usb device forwarded (had to unload osx usb/serial driver first)
* third attempt on a linux box, bare metal with direct access to the usb device
* factory reset through the z-way web interface.
geirgp
Posts: 42
Joined: 22 Oct 2015 19:16

Re: License upgrade fail: "Unable to upgrade capabilities"

Post by geirgp »

geirgp wrote: Here's a list of things I've been doing since the first failed attempt
* Tried different version of z-way server
* Use the stick on different pc's :
* first attempt on virtualbox inside osx host with serial port forwarded (ser2net)
* second attempt on virtualbox inside osx host with usb device forwarded (had to unload osx usb/serial driver first)
* third attempt on a linux box, bare metal with direct access to the usb device
* factory reset through the z-way web interface.
However I still got "License key successfully verified" after these changes so I doubt they're related to the uuid change, it failed with "Upgrading capabilities" in all these cases. It was only after the firmware upgrade I started getting "Unable to verify the License Key" which I later found was caused by changed uuid..
gabrielb
Posts: 13
Joined: 17 Dec 2015 23:45
Location: Sweden

Re: License upgrade fail: "Unable to upgrade capabilities"

Post by gabrielb »

After my upgrade to firmware 05.04 my controller dont want to "include" any devices anymore. Tried to verifying the license again but get error "Unable to verify the License Key".

Zway can find the controller UZB1 and I can exclude de devices, but not include.

Any ideas?
gabrielb
Posts: 13
Joined: 17 Dec 2015 23:45
Location: Sweden

Re: License upgrade fail: "Unable to upgrade capabilities"

Post by gabrielb »

geirgp wrote: However I still got "License key successfully verified" after these changes so I doubt they're related to the uuid change, it failed with "Upgrading capabilities" in all these cases. It was only after the firmware upgrade I started getting "Unable to verify the License Key" which I later found was caused by changed uuid..
I have the same problem, but now I am not able to use Zway anymore att all. Only thing that works is to exclude devices.
Tried the UZB1 stick in my old Domoticz setup and the controller works great.

Is it possible to restore the old UUID for trying to veryfing the license again?
IZON
Posts: 6
Joined: 30 Dec 2015 20:41

Re: License upgrade fail: "Unable to upgrade capabilities"

Post by IZON »

Hmm after upgrade to 2.2.0 my license key field from razberry is empty. Maybe this is why nothing is working anymore?
How to retrieve it since its included in razberry?
Post Reply