Z-Ware Web Server Installation, Configuration, Administration & Building Guide
Written By:
SAMBAT;YANYAN;FTEO;BBR
Date:
Reviewed By:
BYEO;KMEEL
Restrictions:
Partners Only
Approved by:
This document is the property of Silicon Labs. The data contained herein, in whole
or in part, may not be duplicated, used or disclosed outside the recipient for any
purpose. This restriction does not limit the recipient's right to use information
contained in the data if it is obtained from another source without restriction.
CONFIDENTIAL
INS12905-11 Z-Ware Web Server Installation Guide 2018-03-05
Updated run time dependencies, added auto-start option, added device database,
updated Reference
7
20160922
AYY
SNA
2- 5, 7-8,
15, 17
1
Added log rotate function, added server certificate section.
Merged CE version installation guide into this doc.
Added parallel keyword for compilation.
Added additional installation settings.
Modified introduction, & previously modified areas
8
20170110
FT
AYY
1,2,8
13-14
Update CE version for RPi3 support
Added Operating System Common CA Certificate Configuration
Added generation of ZIPGW certificate during portal registration
9
20170224
AYY
9-10
Added OAuth2 Database settings, IFTTT settings, Operation system CA certificate
setting.
10
20170516
FT
AYY
3
8
9
14-15
Untar with sub-directory created.
Update document with the missing Email sender name.
Re-order OAuth2 Clients, IFTTT, OS Common CA setting in documents.
Update ZIPGW certificate generation process during portal registration
11
20170717
AYY
2, 22
Added toolchain and OS image for BeagleBone Black and Raspberry Pi 3
12
20180305
BBR
All
Added Silicon Labs template
CONFIDENTIAL
INS12905-11 Z-Ware Web Server Installation Guide 2018-03-05
2.3 User privilege ...................................................................................................................................... 2
2.4 Selection of deployment directory ...................................................................................................... 2
6.3 Admin Access (Portal Version Only) ................................................................................................21
7 BUILDING ...........................................................................................................................................22
7.2.1 Toolchain for BBB and RPi 3 .................................................................................................22
7.3 User Privilege ...................................................................................................................................22
Table 3-12: Security Scene Notification Email Settings ............................................................................ 13
Table 3-13: Security Scene Notification SMS Settings ............................................................................. 13
Table 3-14: Scene SMTP Settings ............................................................................................................ 13
CONFIDENTIAL
INS12905-11 Z-Ware Web Server Installation Guide 2018-03-05
silabs.com | Building a more connected world.
Page v of v
CONFIDENTIAL
INS12905-11 Z-Ware Web Server Installation Guide 2018-03-05
silabs.com | Building a more connected world.
Page 1 of 25
1 INTRODUCTION
1.1 Purpose
Z-Ware Web Server (see [1]) can be built on a Linux PC for 3 targets:
Portal on Linux PC
CE (Consumer Electronics) on Linux PC
CE on BBB (Texas Instrument’s BeagleBone Black board, See https://beagleboard.org/black)
CE on RPi3 (Raspberry Pi 3 Model B board, See
The CE version of the ARM binary installation package created for BBB can be installed directly to RPi3.
During BBB or RPi3 installation, the installation configuration will automatically handle the differences
between BeagleBone Debian and Raspbian OS. The below procedure targeting BBB would also
applicable for RPi3.
2.2 Runtime package dependencies
The following is the list of required dependency packages in addition to the ones that get installed by
default as part of the OS distribution.
gettext
ia32-libs (applicable only for 64-bit OS and needed only when 32-bit version of this software is
required to run in 64-bit OS)
sendmail-bin (needed only when SMTP Server is not used)
rsyslogd (needed only when logging via syslog is used)
sendmail-bin (needed only when SMTP Server is not used)
binutils (needed only for LTS Server version)
2.3 User privilege
The deployment user should not be ‘root’ but must have super user privileges via sudo.
2.4 Selection of deployment directory
The absolute path name of the deployment directory must not contain white spaces.
2.5 Installation (Deployment) procedure
1) If this software is already installed and one or more services running, stop those services. Refer
‘Service Management’ section to find instructions on shutting down the services.
2) Change directory to the path where the installer is placed
CONFIDENTIAL
INS12905-11 Z-Ware Web Server Installation Guide 2018-03-05
silabs.com | Building a more connected world.
Page 3 of 25
Z-Ware Service
Option
Default
zware-http
Y/N N zware-ldap (Portal version only)
Y/N
N
cd /home/<user>/installer/
3) Extract the contents of the installer. Use one of the following commands depending on the OS
type – 64 bit or 32 bit.
tar -zxvf zwareportal-x86_64.tar.gz # (64-bit)
tar -zxvf zwareportal-i386.tar.gz # (32-bit)
tar -zxvf zwarelocal-x86_64.tar.gz # (64-bit)
tar -zxvf zwarelocal-i386.tar.gz # (32-bit)
tar -zxvf zwarelocal-beaglebone.tar.gz # (32-bit)
4) For PC portal or local installation, start installation by specifying the deployment path
cd zwareportal-x86_64 # OR cd zwareportal-i386
./install.sh /home/<user>/zwareportal/
OR
cd zwarelocal-x86_64 # OR cd zwarelocal-i386
./install.sh /home/<user>/zwarelocal/
On a fresh BBB OS, run the following command and Z-Ware will auto configure BBB OS network
and the ZIPGW config file
cd zwarelocal-beaglebone/
./install.sh --configure-beaglebone /home/<user>/zwarelocal/
For re-installation of Z-Ware on BBB, or if BBB OS network configuration and the ZIPGW config
file modification are not desired, run the following command
cd zwarelocal-beaglebone/
./install.sh /home/<user>/zwarelocal/
‘sudo’ password for the user shall be prompted.
System configurations shall be prompted, if there were no previous configurations or if there
were additional set of configurations after an update of this software. Refer ‘System
Configuration’ section for details of various configuration options.
2.6 Install time only Configurations
These settings are only available during installation.
2.6.1 Upstart Settings
This determines whether various Z-Ware services should be added to system ‘upstart’ service manager.
CONFIDENTIAL
Table 2-1: Upstart Settings
INS12905-11 Z-Ware Web Server Installation Guide 2018-03-05
silabs.com | Building a more connected world.
Page 4 of 25
zware-memcached (Portal version only)
Y/N N zware-portal
Y/N
N
Setting
Option
Default
Network Router Wi-Fi 2.4GHz SSID
<string>
none
Network Router Wi-Fi 2.4GHz Password
<string>
none
Network Wi-Fi ISO/IEC alpha2 Country
Code
<string>
US
For more information,
see https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2
2.6.2 Autostart Setting
This determines if Z-Ware is auto-started on system boot.
Setting: Enable this package to be auto started after system boot up?
Option: Y/N
Default: Y for BBB, N for PC platform
2.6.3 BBB Wi-Fi Cape Setting (BBB version Only)
If BBB Wi-Fi Cape is installed, Z-Ware can auto configure the Wi-Fi connection.
Table 2-2: BBB Wi-Fi Cape Settings
Please note that Z-Ware will not store the Wi-Fi SSID and password information. These are for one-time
setup purpose. If the Wi-Fi SSID and/or password changes, the installation needs to be re-run with the
new SSID and/or password information to re-configure Wi-Fi setting.
2.7 Software License
The license applicable for the software is placed at the following location. Licenses applicable to external
(third-party) software are pointed to from this file.
<install-path>/LICENSE
Here, <install-path> is the deployment directory in deployment machine which is usually
/home/<user>/zwareportal/ or, /home/<user>/zwarelocal/ or /home/<user>/zwarebeaglebone/ .
CONFIDENTIAL
INS12905-11 Z-Ware Web Server Installation Guide 2018-03-05
silabs.com | Building a more connected world.
Page 5 of 25
Setting
Option
Default
Hostname
<string>
zware-portal.com
Services to restart: httpd
Hostname is the network label that identifies the deployment machine. Usually, this is set to the name
with which the web service shall be hosted. If not already set, a FQDN hostname is suggested.
3 SYSTEM CONFIGURATION
System configuration is performed as part of installation (See 2). If a change in system configuration is
required in an existing installation, perform the following steps.
1) Change to deployment directory in the deployment machine.
cd /home/<user>/zwareportal/
2) Get system configuration from user
./config/config-config.sh
The texts shown between square brackets [ ] indicate current configuration values. Pressing just
the 'Enter/Return' key at the prompt retains the current configuration value.
The texts shown between less-than and greater-than symbols < > indicate comments.
The texts separated by pipe symbol | indicate the valid set of values for a given configuration
item. If the options are given as (y|n), the character ‘y’ indicates ‘yes’ and the character ‘n’ indicates ‘no’.
3) Stop selected or all services depending on the set of configuration parameters being changed.
Refer ‘Service Management’ section to find instructions on shutting down the services.
4) Apply the system configuration in various configuration files
./config/configure.sh
5) Start the stopped services. Refer ‘Service Management’ section to find instructions on starting
the services.
3.1 Configuration Description
The following is the description of various configuration settings.
For each of these settings, a list of services is listed against ‘Services to restart’. For the changes in a
given set of configuration settings to take effect, the corresponding set of these services must be stopped
before running “configure.sh” script and startedagain then after. Refer ‘Service Management’ section to
find instructions on stopping and starting services.
3.1.1 System Settings
Table 3-1: System Settings
CONFIDENTIAL
Loading...
+ 21 hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.