How to upgrade Z-Box firmware, the simple way

Moderator: Wendy

Post Reply
cksze
Posts: 7
Joined: 26 Jun 2015 16:03

How to upgrade Z-Box firmware, the simple way

Post by cksze » 08 Jul 2015 11:37

Caution: There is risk that you will brick your Z-Box by upgrading the Z-Box firmware in simple way, but in worst case you can use the "difficult way" to salvage it.

Firmware (.bin file) download from here (v2.0.1 rc29)
http://pan.baidu.com/s/1dilFg

1. Go to 192.168.1.1 to enter router UI (LuCI)
2. Go to "System"--> Select "Back up / Flash Firmware" to upgrade firmware
3. Important: during re-flashing the firmware, there is no progress indication, it looks like dead, you must wait at least 20min, if the upgrade is successful, it will reboot automatically.
4. Attention: With the new firmware, 192.168.1.1 will become Z-way UI, and Router UI will become 192.168.1.1:8085

Now you need to do one more procedure, otherwise your Z-Box cannot start Z-Way: (will fix this bug in next release)

5. Connect the Z-Box LAN port, or use wifi to login (SSID: Ubitech-2077, password: 12345678),
6. Go to 192.168.1.1:8085 to enter Router (LuCI) UI, and you will be prompt to create the root password, please do it.
7. Use ssh (for example, in the command console, type: ssh root@192.168.1.1 )
8. Do: rm /usr/local/z-wave-server/modules/modinstaller.so (if you use Windows, you can also use WinSCP to delete this file instead of using ssh login, but you need to have the root password created (in step 6) before your use WinSCP)
9. Go to 192.168.1.1:8084 (System config UI) to restart Z-Box

New UI entry point
192.168.1.1 is Z-Way UI
192.168.1.1:8084 is System config UI
192.168.1.1:8085 is Router UI

More info about Z-Way web UI
http://razberry.z-wave.me/docs/RaZberry ... nual20.pdf
http://razberry.z-wave.me/docs/zwayha.pdf

If you bricked your Z-Box, please download instruction how to salvage it from here:
http://pan.baidu.com/s/1eQyF3TC

How to make Z-Box compatible in your local network without conflicting the IP address if your home router (192.168.1.1 is common by all routers)

10. Go to "Network"-->"Interfaces" --> select LAN edit (on the right side), change it to "DHCP client", then you need to click the "Switch protocol" and then press the "Apply and Save" button to make the change.
11. Now you can connect your Z-Box to your local network (cable connect to WAN port and your router), you need to check what is the IP address assigned to Z-Box (Or you can change the Static IP from 192.168.1.1 to any other IP address you think suitable in your local network, without conflicting your Router's IP address)

Remark:
If you want to turn the Z-Box into "AP client mode" that means use it's wifi to hook up to your home wifi as a DHCP client, instead of by LAN cable, it's possible.

As we have not yet implemented the UI for this, but the function on OS level is implemented, so you can use line command to do it.

12. Use telnet software, such as command console, puTTY, WinSCP, etc to login to command console (use port 22, login as root)
13. Use following command to do what you want:

Scan Wifi signal:

iwpriv ra0 set SiteSurvey=1
iwpriv ra0 get_site_survey

Connect to wifi for different security mechanism:

£®ROOTAP_SSID and 12345678 in below are only for example, subject to your home wifi setting£©

OPEN/NONE
iwpriv apcli0 set ApCliEnable=0
iwpriv apcli0 set ApCliAuthMode=OPEN
iwpriv apcli0 set ApCliEncrypType=NONE
iwpriv apcli0 set ApCliSsid=ROOTAP_SSID
iwpriv apcli0 set ApCliEnable=1

OPEN/WEP
iwpriv apcli0 set ApCliEnable=0
iwpriv apcli0 set ApCliAuthMode=OPEN
iwpriv apcli0 set ApCliEncrypType=WEP
iwpriv apcli0 set ApCliDefaultKeyID=1
iwpriv apcli0 set ApCliKey1=12345678
iwpriv apcli0 set ApCliSsid=ROOTAP_SSID
iwpriv apcli0 set ApCliEnable=1

WPAPSK/TKIP
iwpriv apcli0 set ApCliEnable=0
iwpriv apcli0 set ApCliAuthMode=WPAPSK
iwpriv apcli0 set ApCliEncrypType=TKIP
iwpriv apcli0 set ApCliSsid=ROOTAP_SSID
iwpriv apcli0 set ApCliWPAPSK=12345678
iwpriv apcli0 set ApCliSsid=ROOTAP_SSID
iwpriv apcli0 set ApCliEnable=1

WPA2PSK/AES
iwpriv apcli0 set ApCliEnable=0
iwpriv apcli0 set ApCliAuthMode=WPA2PSK
iwpriv apcli0 set ApCliEncrypType=AES
iwpriv apcli0 set ApCliSsid=ROOTAP_SSID
iwpriv apcli0 set ApCliWPAPSK=12345678
iwpriv apcli0 set ApCliSsid=ROOTAP_SSID
iwpriv apcli0 set ApCliEnable=1

PIN mode
iwpriv apcli0 set ApCliEnable=1
iwpriv apcli0 set WscConfMode=1 // Enrollee
iwpriv apcli0 set WscMode=1 // PIN mode
iwpriv apcli0 set WscGetConf=1 // Trigger
iwpriv apcli0 set ApCliEnable=1

PBC Mode
iwpriv apcli0 set ApCliEnable=1
iwpriv apcli0 set WscConfMode=1 // Enrollee
iwpriv apcli0 set WscMode=2 // PBC mode
iwpriv apcli0 set WscGetConf=1 // Trigger
iwpriv apcli0 set ApCliEnable=1

Enjoy!
Z-Way rocks!

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest