Difference between revisions of "Settings"
(→Extras) |
|||
Line 714: | Line 714: | ||
To configure one of the real serial ports of the server, or a USB serial adapter, create a port of type “serial”. | To configure one of the real serial ports of the server, or a USB serial adapter, create a port of type “serial”. | ||
+ | |||
+ | '''Port''' | ||
+ | |||
+ | '''Default:''' mandatory | ||
+ | |||
+ | '''Format:''' | ||
+ | |||
+ | |||
+ | Complete or partial system name of the associated communication port. For example ttyS0 or /dev/ttyS0. | ||
+ | |||
+ | |||
+ | '''Baud rate''' | ||
+ | |||
+ | '''Default:''' mandatory | ||
+ | |||
+ | '''Format:''' | ||
+ | |||
+ | |||
+ | Port speed. | ||
+ | |||
+ | |||
+ | '''Data bits''' | ||
+ | |||
+ | '''Default:''' mandatory | ||
+ | |||
+ | '''Format:''' | ||
+ | |||
+ | |||
+ | The number of bits can be 8, 7, 6 or 5. It should be set to 8 in most cases. | ||
+ | |||
+ | |||
+ | |||
+ | '''Stop bits''' | ||
+ | |||
+ | '''Default:''' mandatory | ||
+ | |||
+ | '''Format:''' | ||
+ | |||
+ | |||
+ | The number of stop bits can be 1, 1.5 or 2. | ||
+ | |||
+ | |||
+ | '''Parity''' | ||
+ | |||
+ | '''Default:''' mandatory | ||
+ | |||
+ | '''Format:''' | ||
+ | |||
+ | |||
+ | Parity can be none, odd, even, mark or space. | ||
+ | |||
+ | |||
+ | '''Flow control''' | ||
+ | |||
+ | '''Default:''' mandatory | ||
+ | |||
+ | '''Format:''' | ||
+ | |||
+ | |||
+ | Flow control can be none, XON/XOFF or RTS/CTS. | ||
+ | |||
+ | |||
+ | '''Timeout'' | ||
+ | |||
+ | '''Default:''' 2 | ||
+ | |||
+ | '''Format:''' | ||
+ | |||
+ | |||
+ | The timeout parameter is optional and could be omitted. It defines the serial port receive timeout, in seconds. Defaults to 2 seconds if not defined. | ||
+ | |||
+ | === Server ports === | ||
+ | |||
+ | To configure a port on a network serial adapter, select type “server”. | ||
+ | |||
+ | The only configuration parameters are the IP address and port number. The serial port communication parameters, like speed, flow control etc., should be configured on the serial gateway. | ||
+ | |||
+ | |||
+ | === HWG I/O Server ports === | ||
+ | |||
+ | Some network I/O controllers produced by HWG have a serial port, that could be used as fully functional serial port by HSYCO. To configure these ports, select type “io”, then select the I/O server id of the HWG controller and enter the normal serial port configuration parameters. | ||
+ | |||
+ | |||
+ | === IRTrans ports === | ||
+ | |||
+ | Some IRTrans network IR controllers have a local serial port. HSYCO can use this port as an output-only serial port. | ||
+ | |||
+ | To configure an IRTrans serial port, select type “irtrans”, and select the id of the IRTrans device. The serial port communication parameters, like speed, flow control etc., should be configured on the IRTrans. | ||
+ | |||
+ | |||
+ | == IRTrans Servers == | ||
+ | |||
+ | The IRTrans Servers section is used to define the IRTrans network infrared devices. | ||
+ | |||
+ | Each IRTrans must have a unique ID. You can add a new devices pressing the + button. | ||
+ | |||
+ | Already defined devices could be deleted with the - button or disabled without removing their configuration parameters by unchecking the Enabled checkbox. | ||
+ | |||
+ | The only configuration parameter is the IRTrans IP address. | ||
+ | |||
+ | |||
+ | == Cameras == | ||
+ | |||
+ | This section is used to define individual IP cameras, to set general configuration parameters for video processing, and to define camera grids for the user interface. | ||
+ | |||
+ | === General parameters = |
Revision as of 17:21, 24 February 2014
HSYCO can be configured using the Settings application in the Manager.
Settings stores all configuration parameters in the hsyco.ini file.
You can copy this file to save the current configuration, or manually change it. In this case, be sure to reopen the Settings application after the changes have been saved.
The configuration is read at start-up, so any changes become effective only after restarting the HSYCO process.
HSYCO is factory configured to automatically restart when hsyco.ini is saved.
When you make changes using Settings, the hsyco.ini file will be overwritten when you press the Save button.
You can’t return to the previous configuration once it is saved.
The Revert button allows you to reload the current configuration if you have made changes in Setting that have not yet been saved.
Settings parameters are grouped in several sections.
You can make changes to any parameter, even in different sections, and then save all changes together.
Contents
System
The Systems section contains all general configuration parameters, including vital parameters affecting system’s security and reliability.
These parameters are further split in several sub-sections.
General
URLKey
Default: hsycoserver
Format: string of at least 8 characters
To protect against malicious service discovery robots, HSYCO does not answer to Web requests where only the server address is defined, for example https://192.168.0.50, but requires an extended URL, which must include an access key, called URLKey.
The URLKey must be at least 8 characters long.
It is possible to specify more than one URLKEY, separated by a comma; in this case all the specified URLKEYs will be valid for the web access to HSYCO.
The factory default URLKey is hsycoserver.
The URLKey is not a secret password, but only an additional protection feature.
Language
Default: en
Format: cn | en | fr | it
Some I/O Servers and other core services use localized text messages. This parameter defines the default system language for these services.
AutoKillFiles
Default:
Format: list of file names separated by commas
This parameter is usually set as: "hsyco.ini,hsyco.jar,com/hsyco/user.class" forcing the automatic restart after the changes of the three files listed.
DatabaseBackup
Default: false
Format: false | true
When set to true, a hot backup of the core database is automatically executed on a daily basis, saving data in the data_backup directory, and overwriting the previous backup files.
StartupDelay
Default: 0
Format: 0 or positive integer number of seconds
When set to a positive number, the HSYCO server will wait for the specified number of seconds at start-up before becoming active.
This start-up delay could be useful to prevent HSYCO from starting before other peripherals or devices, like external storage systems, are completely initialized.
ExceptionWatchdog
Default: 5
Format: positive integer number
After N uncaught Java execution exceptions, the HSYCO server will be killed and restarted.
Set to 0 to disable the exception watchdog.
userLog
Default: false
Format: false | true
Set to true to enable the log of the Java methods called in user.java or of the commands defined in the EVENTS programming environment.
eventsLog
Default: false
Format: false | true
If true, the log of events received from field devices is enabled, for example the events related to the IO Servers.
verboseLog
Default: false
Format: false | true
If true, the extended log is enabled.
It is useful for debugging, or during the advanced customization phase or the development of Java code.
If silent, only the most serious errors will be written on the file and all the other messages will be disabled, including the events received from field devices.
securityLogDailyFiles
Default: false
Format: false | true
When set to true, the security logs are written in daily files named MMDD-security.log.
LogMaxAge
Default: 0
Format: 0, or positive integer number
Log files are automatically deleted when older than the number of days defined with this parameter.
When set to 0 or not defined, log files are not deleted automatically.
Access Control
trustedNet
Default: local
Format: local, or nn.nn.nn.nn-nn.nn.nn.nn
IP addresses that define the group of network addresses belonging to the secure local network.
It is possible to enter multiple, comma-separated IP ranges or individual IP addresses, or simply enter “local”, so that HSYCO will assume all IP addresses in the LAN as trusted.
The Web clients connecting to HSYCO from these addresses are subject to the time-out defined in KeysTrustedValidityHours, which is usually longer than the one used for all the other IP addresses, defined in KeysNotTrustedValidityHours.
KeysTrustedValidityHours
Default: 24
Format: integer > 0 or hh:mm
Login time-out in hours for the connections from trusted IP addresses.
Set on a very high value, e.g. 100000, to practically avoid the time-out of sessions.
It can also be set using the hh:mm hours and minutes format.
KeysNotTrustedValidityHours
Default: 1
Format: integer > 0 or hh:mm
Login time-out in hours for not trusted IP addresses.
It can also be set using the hh:mm hours and minutes format.
KeysInactivityHours
Default: 1
Format: integer > 0 or hh:mm
Inactivity time-out in hours.
This is an optional parameter; if not set there will be no inactivity time-out and the user session will be automatically logged out based on the login time-out only.
It can also be set using the hh:mm hours and minutes format.
KeysInactivityMode
Default: browser
Format: browser | cameras | commands
Inactivity time-out mode.
This is an optional parameter.
It is significant only when KeysInactivityHours is also defined.
In browser mode, having the Web browser open on the HSYCO page will keep the session alive.
In cameras mode the session will remain alive only when sending commands or watching cameras.
In commands mode the session will stay alive only if commands are sent before the inactivity timer expires.
HTTPServerPublicDirectory
Default: browser
Format: directory name
If defined, enables a simple Web server that serves files, without any parsing, via HTTP and HTTPS, only to clients in the trusted range of IP addresses.
This parameter sets the name of the directory, under the www root Web directory, used for the public files.
If, for example, you have HTTPServerPublicDirectory=public, and an HTML file named home.html in the public directory, then the https://192.168.0.50/public/home.html URL will point to that file.
As you see, you shouldn’t add the URLKey in public URLs.
HTTPServerLowSecurityEnabled
Default: false
Format: true | false
Usually, the HTTP server is only active to let cameras and PBX systems send motion detection and calls notifications.
To avoid the authentication keys, PIN and PUK codes and all traffic to be transmitted in the clear, the HTTP protocol is not normally used for Web access to HSYCO.
Set the parameter to true only when you want to enable the not-secure HTTP protocol for Web access to HSYCO.
WebAdminNetConfigLock
Default: false
Format: true | false
If true, the Web network settings functions are disabled.
This parameter should be set to true once you expect no changes in the network configuration of HSYCO Server.
Network
HTTPServerPort
Default:
Format: integer number < 65535
TCP/IP port of HSYCO HTTP Web Server. If not defined, the HTTP server is not enabled.
Normally set to 80.
HTTPSSLServerPort
Default:
Format: integer number < 65535
TCP/IP port of HSYCO HTTPS Web Server.
If not defined, the HTTPS server is not enabled.
Normally set to 443.
SysLogServerPort
Default:
Format: integer number < 65535
TCP/IP port of HSYCO SYSLOG Web server.
The SYSLOG server is used to receive from the Access Points (AP) the information to determine which AP every user in the Wi-Fi LAN is using to connect.
If not defined, the SYSLOG server is not enabled.
It is usually set to 514.
ServerName
Default: hsyco
Format: domain name
Name used to generate the SSL certificate.
It is necessary for the cryptography of the HTTPS Web traffic and should correspond to the domain name through which the HSYCO server is accessed via the Internet.
The certificate is saved in the hsyco.keys file.
When HSYCO is started, if this file is not available or its name doesn’t match the ServerName parameter in hsyco.ini, a new SSL certificate is automatically generated according to the name defined in ServerName.
OffLineCache
Default: false
Format: false | true
HSYCO implements the off-line cache feature of the Web browsers that support the HTML 5.0 standard.
To enable the off-line storage on the Web browser of all HSYCO HTML static content, set this parameter to true.
HTTPServerThreads
Default: 256
Format: positive integer number
Sets the total number of processing threads for the HTTP and HTTPS internal web servers.
You should change this parameter only when you have a very large number of active web clients.
Web browsers normally use only a few (up to about 6) concurrent connections for each session, and the default should be fine to support up to at least 40 active clients.
When the HTTP and HTTPS servers run low of threads, some clients could see their requests rejected, causing page load errors or becoming unresponsive.
In this case you should see “too many connections” error messages in HSYCO’s log files.
Increasing this parameter also increases memory and I/O resources requirements to the underlying operating system.
Clock
TimeAutoUpdate
Default: true
Format: false | true | NTP server name/address
HSYCO automatically sets the local date and time by polling Network Time Protocol (NTP) servers.
To disable this feature, set this parameter to false.
To use a specific NTP server, set this parameter to the name or IP address of the NTP server.
TimeZone
Default: true
Format: the time zone id
Set the current time zone.
The time zone information is used to obtain the correct local time and automatically adjust for daylight saving time.
If this parameter is not set, HSYCO will use the operating system’s time zone settings.
The time zone id is either in the form “Area/Location”, or a generic “GMT+NN”, “GMT-NN” format that simply defines the hours offset from UTC time.
When the “Area/Location” format is used, the clock is automatically adjusted for daylight saving time.
The TimeZone value should have no spaces; replace spaces in area or location names with underscores, for example “America/New_York”.
When HSYCO starts, you can check the message.log file to see the actual time zone and DST setting, just after the start-up message, for example:
2013.07.10 15:28:30.113 - HSYCO Ver. 3.3.0 Build 0112 (USER Ver. No User Code) started 2013.07.10 15:28:30.425 - Time zone is: Europe/Rome (Central European Summer Time)
Latitude
Default: 0
Format: positive or negative numerical value, decimals separated by “.”
Latitude in decimal degrees (positive for the Northern Hemisphere), to calculate the sun position and sunrise/sunset time.
Longitude
Default: 0
Format: positive or negative numerical value, decimals separated by “.”
Longitude in decimal degrees (positive for the Eastern Hemisphere), to calculate the sun position and sunrise/sunset time.
SunriseOffsetMinutes
Default: 0
Format: positive or negative integer number
Deviation in minutes from the astronomical sunrise time (in advance if negative, delayed if positive).
SunsetOffsetMinutes
Default: 0
Format: positive or negative integer number
Deviation in minutes from the astronomical sunset time (in advance if negative, delayed if positive).
High Availability
haMode
Default:
Format: master | slave
Enables the high availability configuration of HSYCO.
The high availability configuration uses two different HSYCO systems, one is configured as the master system, the other as slave.
haMasterIP
Default:
Format: IP address: nnn.nnn.nnn.nnn
Mandatory parameter for the high availability configuration.
It specifies the IP address of the HSYCO master system.
haSlaveIP
Default:
Format: IP address: nnn.nnn.nnn.nnn
Mandatory parameter for the high availability configuration.
It specifies the IP address of the HSYCO slave system.
haDisableCommandEvents
Default: true
Format: false | true
Optional parameter for the high availability configuration.
If true, command methods and actions in Java and EVENTS are automatically disabled on the HSYCO Server that is not active (for example the system defined as slave is not active when the master system works properly) for the following systems: Audio, Cameras, Comm ports, DMX, I/O Servers, IRTrans, Modbus (write command are disabled) Squeezebox, URL.
Remote HSYCO Servers
RemoteServerPassword
Default:
Format: string (letters and numbers)
Set this password to enable this HSYCO server to be accessed by another HSYCO server via the HSYCO Remote I/O Server (see the HSYCO Remote I/O Server Application Note for further information).
RemoteServerAddress
Default:
Format: comma separated list of IP addresses, or *
Set to the IP addresses of the remote HSYCO servers that should be allowed to access this HSYCO server.
Set to * to allow any remote IP address.
RemoteServerControl
Default: false
Format: false | true
Set to true to allow the remote server to modify the data points values of this HSYCO server.
RemoteServerIOFilter
Default:
Format: comma separated list of I/O Servers IDs
If you want to limit remote access and control to just some of the I/O Servers defined in this HSYCO, use this parameter to list the I/O Servers that should be available to the remote HSYCO system.
Filtering out I/O Servers that are not used remotely could have a positive impact on performance and network traffic.
RemoteServerUIFilter
Default:
Format: comma separated list of I/O Servers IDs
If you want to limit remote access and control to just some of the user interface objects defined in this HSYCO, use this parameter to list the objects’ IDs prefixes (a prefix is the first part of the ID, before the first dot character, if you are using a dot-separated notation; use the full ID if not using the dot notation) that should be available to the remote HSYCO system.
Filtering out UI objects that are not used remotely could have a positive impact on performance and network traffic.
SmtpName
Default:
Format: SMTP server name or IP address
SMTP server name or numeric IP address.
This parameter is used by the MAIL action and sendMail() method to send email messages through a specific authenticated and secured SMTP account rather than directly to the recipient’s SMTP server.
SmtpPort
Default: 25, 465 or 587
Format: positive integer number
SMTP server’s port number, if different from the default port.
The default port is:
- 25 for not encrypted traffic
- 465 for SMTP over SSL
- 587 for ESMTP.
SmtpUser
Default:
Format: string
Account’s username to authenticate the connection to the SMTP server.
SmtpPassword
Default:
Format: string
Account’s password to authenticate the connection to the SMTP server.
SmtpSSL
Default: false
Format: false | true | esmtp
Set to “true” for SMTP server that support SMTP over SSL (default port is 465).
Set to “esmtp” for SMTP server that support ESMTP (default port is 587).
Set to “false” for SMTP servers that don’t support traffic encryption.
Audio Server
AudioServerTTS
Default:
Format: string
This parameter is only needed if you are using a text-to-speech engine that is not the default one for the operating system.
See the Public Announcement Appendix for additional information.
AudioServerVolume
Default:
Format: integer number
Change the default output volume for pre-recorded audio files and the text-to-speech engine.
AudioServerQuality
Default:
Format: integer number
Change the default quality for the text-to-speech engine.
AudioServerSpeed
Default:
Format: integer number
Change the default speed for pre-recorded audio files and the text-to-speech engine.
Extras
This section is used to set other not standard parameters that should be saved in hsyco.ini, like application-specific parameters.
I/O Servers
HSYCO Server interfaces to several field sub-systems, including lighting and automation systems, video cameras, HVAC controllers, security systems, and other special-purpose devices. HSYCO supports several standard protocols, like BACnet, DALI, DMX, KNX, Modbus, as well as quite a few proprietary protocols.
Most of these field systems are represented inside HSYCO as “I/O servers”. An I/O server is a software module that offers a standardized abstraction layer so that even very different systems can be interfaced using a consistent naming convention and programming model.
Each I/O server must have a unique ID. You can add a new I/O server pressing the + button.
Select the type and enter the server’s unique ID.
Already defined I/O servers could be deleted with the - button or disabled without removing their configuration parameters by unchecking the Enabled checkbox.
Each server type may require different configuration parameters, like IP address and port, serial port id, or authentication information.
Refer to the Application Notes documentation for detailed configuration and interfacing information for I/O servers.
The “Shutdown when inactive” parameter, that is available for all I/O server types, is only used in high availability configurations.
Set it to true to automatically stop the I/O server when the HSYCO server (master or slave) is not the active system. Set to false to keep the I/O server running even when the HSYCO server is not the active system.
LINK ALL'ELENCO DEGLI I/O SERVERS (AGGIUNGERE DESCRIZIONE)
Communication Ports
The Comm Ports section is used to define all serial ports and their configuration parameters.
Each port must have a unique ID. You can add a new ports pressing the + button.
Select the type and enter the port’s unique ID.
Already defined ports could be deleted with the - button or disabled without removing their configuration parameters by unchecking the Enabled checkbox.
The different types of comm ports have different configuration parameters.
The CommPortsList is an optional parameter, and should not be required unless the operating system fails to automatically detect the local serial ports. In this case, list all local serial ports using the full operating system port names, for example: /dev/ttyS0,/dev/ttyS1.
Serial ports
To configure one of the real serial ports of the server, or a USB serial adapter, create a port of type “serial”.
Port
Default: mandatory
Format:
Complete or partial system name of the associated communication port. For example ttyS0 or /dev/ttyS0.
Baud rate
Default: mandatory
Format:
Port speed.
Data bits
Default: mandatory
Format:
The number of bits can be 8, 7, 6 or 5. It should be set to 8 in most cases.
Stop bits
Default: mandatory
Format:
The number of stop bits can be 1, 1.5 or 2.
Parity
Default: mandatory
Format:
Parity can be none, odd, even, mark or space.
Flow control
Default: mandatory
Format:
Flow control can be none, XON/XOFF or RTS/CTS.
'Timeout
Default: 2
Format:
The timeout parameter is optional and could be omitted. It defines the serial port receive timeout, in seconds. Defaults to 2 seconds if not defined.
Server ports
To configure a port on a network serial adapter, select type “server”.
The only configuration parameters are the IP address and port number. The serial port communication parameters, like speed, flow control etc., should be configured on the serial gateway.
HWG I/O Server ports
Some network I/O controllers produced by HWG have a serial port, that could be used as fully functional serial port by HSYCO. To configure these ports, select type “io”, then select the I/O server id of the HWG controller and enter the normal serial port configuration parameters.
IRTrans ports
Some IRTrans network IR controllers have a local serial port. HSYCO can use this port as an output-only serial port.
To configure an IRTrans serial port, select type “irtrans”, and select the id of the IRTrans device. The serial port communication parameters, like speed, flow control etc., should be configured on the IRTrans.
IRTrans Servers
The IRTrans Servers section is used to define the IRTrans network infrared devices.
Each IRTrans must have a unique ID. You can add a new devices pressing the + button.
Already defined devices could be deleted with the - button or disabled without removing their configuration parameters by unchecking the Enabled checkbox.
The only configuration parameter is the IRTrans IP address.
Cameras
This section is used to define individual IP cameras, to set general configuration parameters for video processing, and to define camera grids for the user interface.