Page 1 of 1

Error on full backup restoring with new Razberry card

Posted: 14 Mar 2017 21:17
by sensingcontrol
Hi,

We are using the C API for creating and restoring a backup with network topology (full restore). We are using the example provided in the code samples section (https://razberry.z-wave.me/fileadmin/z-way-test.tgz), and we modified the main.c file for getting a full recovery:

Code: Select all

ZWError r = zway_controller_config_restore(zway, data, length, TRUE);
We have tested it with 2 different models of the Razberry Daughter Card. With the older Razberry model, the process is working correctly and the backup is restored. The board is:
- Vendors Product ID: 1024 / 1
- SDK Version: 6.51.03
- Serial API Version: 05.00

Then, we tested the same code with the new Razberry model, which is:
- Vendors Product ID: 1024 / 2
- SDK Version: 6.51.06
- Serial API Version: 05.04

When we create the backup the process works correctly, but when we try to restore the backup is crashing. If we deactivate the full restore option, the process works successfully:

Code: Select all

[2017-02-27 14:14:52.898] [I] Restoring controller from ./config/zddx/fca37449-DevicesData.xml
[2017-02-27 14:14:52.946] [I] Adding job: Reset the controller
[2017-02-27 14:14:52.946] [D] SETDATA controller.data.controllerState = 20 (0x00000014)
[2017-02-27 14:14:52.946] [E] SDK is not supported. Upgrade your stick or contact Z-Way developers for more information
[2017-02-27 14:14:52.946] [D] SETDATA controller.data.controllerState = 0 (0x00000000)
Error restoring configuration! (err = Function class not supported by the hardware)
Could you provide us some information about this issue? Is the full backup restore supported in the new card and the newer SDK versions?

Thank you and regards.

Re: Error on full backup restoring with new Razberry card

Posted: 16 Mar 2017 01:12
by PoltoS
Looks you restore on some RaZberry that is more modern than Z-Way itself.
There are two solutions - update Z-Way (for 6.51.09 v2.3.1 RC is needed, for olders v2.3.0 is ok)
Another solution is to tweak Z-Way: set controller.data.SDK.value = "6.51.06" (if you are on 6.51.09) and then do restore again.

Re: Error on full backup restoring with new Razberry card

Posted: 16 Mar 2017 18:19
by sensingcontrol
Hi, thanks for the answer.

I tried with the C libraries of both versions (v2.3.1 RC3 and v2.3.0) and we get the same result.
Another solution is to tweak Z-Way: set controller.data.SDK.value = "6.51.06" (if you are on 6.51.09) and then do restore again.
The SDK version is 6.51.06. I attach you the whole controller info:

Code: Select all

Hardware

Vendor:	RaZberry by Z-Wave.Me
Vendors Product ID:	1024 / 2
Z-Wave Chip:	ZW0500
Firmware

Library Type:	Static Controller
SDK Version:	6.51.06
Serial API Version:	05.04
Capabillities:

UUID:	9f3629e385959189fc37d0cacd7fac9d
Subvendor:	0x0000
Nodes limit:	Unlimited
Capabillities:	SlM
Software Information

Version number:	v2.3.1-rc3
Compile-ID:	46d94735f0a1a5aac90309b1f276de40a7c2ae0e
It's important to point out that just the C Api library is not working. If i perform a create/restore full backup through the Z-Wave EXPERT UI, the process is working fine.

Regards.

Re: Error on full backup restoring with new Razberry card

Posted: 18 Mar 2017 23:54
by PoltoS
Expert UI triggers the same C lib call on the backend. Sure your C API is same version as of the z-way-server?

How do you run C API? Do you stop z-way-server before runnign your s/w?

Re: Error on full backup restoring with new Razberry card

Posted: 21 Mar 2017 18:21
by sensingcontrol
PoltoS wrote:Expert UI triggers the same C lib call on the backend. Sure your C API is same version as of the z-way-server?
We are using the libraries located inside the z-way-server folder after the "wget -q -O - razberry.z-wave.me/install | sudo bash" command. We also tried installing specifically the latest version of the libraries uploaded (at that moment, the v2.3.1-rc3) with the same result.
PoltoS wrote:How do you run C API?
We just run the example test application provided here https://razberry.z-wave.me/fileadmin/z-way-test.tgz , but changing the line I specified in the first message for performing a full restore.
PoltoS wrote:Do you stop z-way-server before runnign your s/w?
Of course, otherwise the port would be busy and would not work.


We want to insist the same code with the same libraries using a Razberry 1 is working perfect. It is just failing using a Razberry 2. Could you please provide us the C API libraries you think we should use for working with Razberry 2?

Regards.

Re: Error on full backup restoring with new Razberry card

Posted: 22 Mar 2017 09:46
by PoltoS
If the "workaround" above worked in main Z-Way app, it should work in the C API too. So before you do the restore in the demo app, change the dataholder value like in the workaround. Note in the log that it changes to make sure it was applied.