Originally posted by Villamann
View Post
Announcement
Collapse
No announcement yet.
Upgrade to Z-Net. Unable to restore backup.
Collapse
X
-
Originally posted by zwolfpack View PostI worked on this last year but never posted.
ZWave.me is the manufacturer of the UZB Z-Wave controller used in the Z-Net EU/AU versions. They provide a command-line backup/restore utility "ZMESerialUpdater". This reads the contents of the controller's internal NVRAM to a binary image file and vice-versa.
Usage is cryptic, so I wrote a couple of scripts to make it easier:
... Rest of the quote deleted for brevity ...
Missing link was your perl script that transforms HS backup format to RaZberry binary format suitable for NVRAM restore. As soon as I get time to get back to it I will try restoring Z-Way network to RaZberry and report if it still works with latest firmware.
Comment
-
Following up...
Z-Wave network restore to RaZberry was successful following your instructions, with two caveats:- backup.ZWave file created by HS3 was in UTF-8 encoding with BOM/signature and line endings were in Windows (CR+LF) format. ZWave-to-zme.pl was choking on it with error message
Code:
[FONT=courier new]'' invalid at line 1[/FONT]
- Command
Code:
[FONT=courier new]./ZMEwriteNVM.sh backup.ZWave.bin /dev/ttyAMA0[/FONT]
Code:[FONT=courier new]sudo ./ZMEwriteNVM.sh backup.ZWave.bin /dev/ttyAMA0[/FONT]
Code:Z-Wave.Me: ====================================================================== Z-Wave.Me: ---------------------------------------------------------------------- Initializing Z-Wave interface Z-Wave.Me (Ethernet Interface) at 192.168.xx.xx, port 4000 Z-Wave.Me: ---------------------------------------------------------------------- Z-Wave.Me: The Z-Wave Command Execution Thread was Started or Restarted. Z-Wave.Me: Z-Wave Ethernet at IP 192.168.xx.xx, connected to interface ok. Z-Wave.Me: The Z-Wave API Execution Thread was Started or Restarted. Z-Wave.Me: Getting node information from controller... Z-Wave.Me: Controller Manufacturer: Telsey, ID=0x2, Type=0x4 Z-Wave.Me: Controller firmware version: 5.36 Z-Wave.Me: Z-Wave services for the SECURITY COMMAND CLASS were successfully started. Z-Wave.Me: Z-Wave Serial API version: 6 Z-Wave.Me: Z-Wave interface node ID: 1, Home ID: D0XXXXXX Z-Wave.Me: Found 37 Z-Wave nodes in interface node ID 1 (Z-Wave.Me) The interface's security support has been set. Z-Wave.Me Controller chip type is ZW050x. Z-Wave.Me Controller is static lib. Z-Wave.Me There is a SUC/SIS in the network. Z-Wave.Me is the SIS for the network. Z-Wave.Me: ...................................................................... Z-Wave.Me: .............................. FINISHED .............................. Z-Wave.Me: ......................................................................
Comment
- backup.ZWave file created by HS3 was in UTF-8 encoding with BOM/signature and line endings were in Windows (CR+LF) format. ZWave-to-zme.pl was choking on it with error message
-
1. Thank you, I'll update the script to handle non-printable characters.
2. Sounds like the userid you are running as isn't a member of the 'dialout' group. The 'pi' user is a member by default. Running sudo is fine, or you can add the group membership via
Code:sudo usermod --groups dialout $(id -un)
Comment
-
- Please don't wait another year to post updated script here
- I was running as user pi. Strange. I'll have to check user group membership.
- That's what I thought. Thanks for confirming it.
Comment
-
After also using Zwolfpack's set of scripts to solve a similar issue, I'm more than happy with the results. I was able to restore a Homeseer taken backup, feed it into the conversion script and then upload the resulting file into a zwave.me UZB. I intend to try the same procedure into a RAZberry which I also purchased recently. Probably my next project while still confined due to the coronavirus pandemic.
zwolfpack Thanks for all your work developing the set of scripts!
Comment
-
Originally posted by zwolfpack View Post
Thanks for the feedback! Good to know it works for the UZB in addition to the Razberry.
Thought you would like to know.
Comment
-
Thanks, good to know.
So the memory maps of the controllers tested so far (Ezzee, Razberry, UZB, Aeotec, HUSBZB-1) are identical, at least for the most important parts (nodeid and node table).
This calls into question HST's assertion that the memory layout varies between vendors. That's their justification as to why restore isn't supported for all controllers.
- Likes 3
Comment
-
So, I have an UZB1 (EU) with FW 5.06, which I’ve had for 3 years. Bought a spare UZB1 last year (FW 5.19). Since a backup ain’t worth much without knowing if a restore works, I want to swap the UZB1's (after a restore to the new one).
Is this the correct method?
1. Stop Z-Wave plugin
2. Run the script to backup NVM
3. Create a HomeSeer Z-Wave-backup
4. Run the merging script
5. Disconnect the old UZB1 and connect the new one
6. Run restore to NVM script
7. Start Z-Wave plugin
8. DONE!
Correct?
I'm considering upgrading the old stick to newest firmware after this, any reason I shouldn’t do that? Then I could do a swap back again and also upgrade my spare UZB1, if no one has any good reason for not doing so...?
Comment
Comment