Prerequisites
There are no prerequisites for this module.
Installation
There are two ways to install the desired module components: through the Kit Manager or manually.
Automated Installation
The Kit Manager is a utility that enables you to automatically install a component or a group of components by executing a predefined install script. To use the Kit Manager to install a component:
kitman.i "<kit_ID>"
The following scripts are available:
Manual Installation
To take advantage of the module's core functionalities as well as install all available drivers, do the following steps:
kitman.i "Peripheral"
kitman.i "Comm (javax.comm) Bundle"
set mbs.bundles.base=../../../bundles/
fw.i -s -l -f com.prosyst.mbs.knx.driver.api.jar
fw.i -s -l -f com.prosyst.mbs.knx.driver.ip.jar
fw.i -f com.prosyst.mbs.knx.driver.usb-natives.win_x86.jar
fw.i -f com.prosyst.mbs.knx.driver.usb-natives.win_x86_64.jar
fw.i -s -l -f com.prosyst.mbs.knx.driver.usb.jar
fw.i -s -l -f com.prosyst.mbs.knx.driver.ft12.jar
fw.i -s -f -l com.prosyst.mbs.knx.driver.commands.jar
To use the Device Access support for the KNX module, do the following steps:
kitman.i "ConfigTree"
kitman.i "Device Access"
kitman.i "KNX"
set mbs.bundles.base=../../../bundles/
fw.i -s -f com.prosyst.mbs.knx.da.hdm.adapter.api.jar
fw.i -s -f com.prosyst.mbs.knx.da.hdm.dc.api.jar
fw.i -s -f com.prosyst.mbs.knx.da.items.api.jar
fw.i -s -l -f com.prosyst.mbs.knx.da.items.provider.jar
fw.i -s -l -f com.prosyst.mbs.knx.da.hdm.adapter.jar
To use the HDM integration support for the KNX module, do the following steps:
kitman.i "ConfigTree"
kitman.i "Device Access HDM"
kitman.i "KNX"
set mbs.bundles.base=../../../bundles/
fw.i -s -f com.prosyst.mbs.knx.da.hdm.adapter.api.jar
fw.i -s -f com.prosyst.mbs.knx.da.hdm.dc.api.jar
fw.i -s -f com.prosyst.mbs.knx.da.items.api.jar
fw.i -s -l -f com.prosyst.mbs.knx.da.hdm.dco.provider.jar
fw.i -s -l -f com.prosyst.mbs.knx.da.hdm.adapter.jar
To take advantage of the ETS configuration tool support for controlling KNX devices via the Functional Items Manager, do the following steps:
kitman.i "Web Services JSON RPC Provider Bundles"
kitman.i "Web Console"
kitman.i "KNX DA Support"
kitman.i "KNX DA HDM Support"
config.update mbs.da.core.apis {da.api=true,hdm.api=true}
fw.restart com.prosyst.mbs.da.core
set mbs.bundles.base=../../../bundles/
fw.i -s -f -l com.prosyst.mbs.knx.da.hdm.jsonrpc.jar
fw.i -s -f -l com.prosyst.mbs.knx.da.hdm.webconsole.jar
Configuring the KNX Module
The KNX Driver Bundles registers a Managed Service Factories under the name "KNX <transmission_medium> Driver Configuration". The dictionary of a configuration produced from the factory contains settings for connecting to the KNX network via a specific transmission medium. For information on how to set it, refer to Changing Settings.
The below section outlines how to connect to the KNX network via USB, Serial Port, IP network or FT1.2 protocol. For more information on Managing Bundle's Configurations, refer to the section Working with Web Console.
For USB Connections
Connect your Home Gateway to a KNX USB interface and do the following:
This step can be done automatically by the Peripheral Admin if there is a peripheral descriptor for the KNX USB controller.
Available Configuration Properties
Parameter |
ID |
PID/FPID |
Type |
Default |
Description |
|---|---|---|---|---|---|
Vendor ID |
vendor_id |
mbs.knx.datalink.usb.fpid |
String |
|
The USB Vendor ID as HEX string (no leading 0x). |
Product ID |
product_id |
mbs.knx.datalink.usb.fpid |
String |
|
The USB Product ID as HEX string (no leading 0x). |
Enable Group Cache |
group_cache_enabled |
mbs.knx.datalink.usb.fpid |
Boolean |
false |
Setting this property true will enable group cache. This means, that all group data write/response requests are cached internally and the value is returned when read request is made. |
Clean Group Cache On Disconnect |
group_cache_clean_on_disconnect |
mbs.knx.datalink.usb.fpid |
Boolean |
true |
Setting this property true will clean group cache when data link is disconnected. |
Auto Connect |
auto_connect |
mbs.knx.datalink.usb.fpid |
Boolean |
true |
Set this property true, to force the driver connect on startup. By default this property is false, and the driver connects on the first request to the bus. |
Reset On Connect |
reset_on_connect |
mbs.knx.datalink.usb.fpid |
Boolean |
true |
Set this property false, in order not to force the USB interface reset on driver connect. |
Acknowledgement timeout |
ack_timeout |
mbs.knx.datalink.usb.fpid |
Int |
2000 |
Default acknowledge timeout. |
Errors to reconnect |
errors_to_reconnect |
mbs.knx.datalink.usb.fpid |
Int |
0 |
The amount of consecutive send / confirmation errors which will forces reconnection, 0 or negative values disables reconnect. |
Individual Address |
individual_address |
mbs.knx.datalink.usb.fpid |
String |
0 |
This is Individual Address of data link that will be set as source address for all outgoing frames. |
For TCP/UDP Connections
Connect your Home Gateway and your KNX IP router to a common IP network and do the following:
Available Configuration Properties
Parameter |
ID |
PID/FPID |
Type |
Default |
Description |
|---|---|---|---|---|---|
Bind Host |
bind.host |
mbs.knx.datalink.ip.fpid |
String |
|
The local host address, to which the KNX/IP driver should bind to. |
Bind Port |
bind.port |
mbs.knx.datalink.ip.fpid |
Int |
0 |
The local port, to which the KNX/IP driver should bind to. |
Remote Host |
remote.host |
mbs.knx.datalink.ip.fpid |
String |
|
The remote host address, to which the KNX/IP driver should connect to. If not set - automatic discovery will be used. |
Remote Port |
remote.port |
mbs.knx.datalink.ip.fpid |
Int |
3671 |
The remote port, to which the KNX/IP driver should connect to. If not set - automatic discovery will be used. |
Protocol Type |
protocol |
mbs.knx.datalink.ip.fpid |
Int |
UDP(1) |
The protocol type. Default value is UDP(1). Possible values are UDP(1) or TCP(2). |
Enable Group Cache |
group_cache_enabled |
mbs.knx.datalink.ip.fpid |
Boolean |
false |
Setting this property true will enable group cache. This means, that all group data write/response requests are cached internally and the value is returned when read request is made. Default value is false. |
Clean Group Cache On Disconnect |
group_cache_clean_on_disconnect |
mbs.knx.datalink.ip.fpid |
Boolean |
true |
Setting this property true will clean group cache when data link is disconnected. |
Auto Connect |
auto_connect |
mbs.knx.datalink.ip.fpid |
Boolean |
false |
Set this property true, to force the driver connect on statup. By default this property is false, and the driver connects on the first request to the bus. |
Acknowledgement timeout |
ack_timeout |
mbs.knx.datalink.ip.fpid |
Int |
2000 |
Default acknowledge timeout. |
Errors to reconnect |
errors_to_reconnect |
mbs.knx.datalink.ip.fpid |
Int |
0 |
The amount of consecutive send / confirmation errors which will forces reconnection, 0 or negative values disables reconnect. |
Individual Address |
individual_address |
mbs.knx.datalink.ip.fpid |
String |
0 |
This is Individual Address of data link that will be set as source address for all outgoing frames. |
For Connections through FT1.2
Connect your Home Gateway to a KNX serial interface and do the following:
For Windows enter the name of the occupied Serial Port. For example: COM1.
For Linux enter the full path to the file which represents the occupied Serial Port. For example: /dev/ttyUSB0.
Available Configuration Properties
Parameter |
ID |
PID/FPID |
Type |
Default |
Description |
|---|---|---|---|---|---|
Port |
port |
mbs.knx.datalink.ft12.fpid |
String |
COM1 |
Port on which to start a FT1.2 driver |
Baudrate |
baudrate |
mbs.knx.datalink.ft12.fpid |
Int |
19200 |
Baudrate for serial port communication. |
DataBits |
dataBits |
mbs.knx.datalink.ft12.fpid |
Int |
8 |
Data bits for serial port communication. |
StopBits |
stopBits |
mbs.knx.datalink.ft12.fpid |
Int |
1 |
Stop bits for serial port communication, default 1. |
Parity |
parity |
mbs.knx.datalink.ft12.fpid |
Int |
EVEN(2) |
Parity for serial port communication. Default value is Even(2). Other possible values are NONE(0), ODD(1), MARK(3), SPACE(4). |
Flow Control |
flowControl |
mbs.knx.datalink.ft12.fpid |
Int |
0 |
Flow control for serial port communication, default NONE. |
EMI Type |
emiType |
mbs.knx.datalink.ft12.fpid |
Int |
EMI2 (513) |
Supported EMI type of the FT1.2 controller. Default value is EMI(2). Other possible values are EMI1 (257), EMI2 (513), EMI (1025) |
Enable Group Cache |
group_cache_enabled |
mbs.knx.datalink.ft12.fpid |
Boolean |
false |
Setting this property true will enable group cache. This means, that all group data write/response requests are cached internally and the value is returned when read request is made. |
Clean Group Cache On Disconnect |
group_cache_clean_on_disconnect |
mbs.knx.datalink.ft12.fpid |
Boolean |
true |
Setting this property true will clean group cache when data link is disconnected. Default value is true. |
Auto Connect |
auto_connect |
mbs.knx.datalink.ft12.fpid |
Boolean |
false |
Set this property true, to force the driver connect on statup. By default this property is false, and the driver connects on the first request to the bus. |
Acknowledgement timeout |
ack_timeout |
mbs.knx.datalink.ft12.fpid |
Int |
1000 |
Default acknowledge timeout.
|
Errors to reconnect |
errors_to_reconnect |
mbs.knx.datalink.ft12.fpid |
Int |
0 |
The amount of consecutive send / confirmation errors which will forces reconnection, 0 or negative values disables reconnect. |
Individual Address |
individual_address |
mbs.knx.datalink.ft12.fpid |
String |
0 |
This is Individual Address of data link that will be set as source address for all outgoing frames. |
System Properties
A description of the KNX system properties.
Property |
Default Value |
Description |
|---|---|---|
mbssh.hdm.knx.debug |
false |
Enables debug log level for KNX DA HDM adapter. |
mbssh.hdm.knx.console |
false |
Enables printing on console of log messages from KNX DA HDM adapter |
mbssh.hdm.knx.pingInterval |
60000 |
Interval in milliseconds, how often the KNX DA HDM adapter will try to connect the KNX device using its individual address, in order to determine its ONLINE/OFFLINE status. Set to 0 or negative to disable device ping. |
mbssh.hdm.knx.skipFlagsChecking |
false |
When a group-address frame is received from the KNX bus, the KNX DA HDM adapter will forward the frame to datapoints with matching datapoint flags. Setting this property to true, allows forwarding to all datapoints without checking their flags. |
Troubleshooting
No troubleshooting information is available for this module.