-
Notifications
You must be signed in to change notification settings - Fork 7
Connect to a device
The BACnet driver allows to connect to one or more remote devices (BACnet servers).
The BACnet device instance number is used as device address. According to the BTL device implementation guidelines, the device instance number is an integer between 0 and 4194302. Optionally, the device address may also contain the host ip address of the device separated from the device instance number by a semicolon:
address := <device instance number>[;<host ip address>]
If the host ip address is not specified, the remote device will be searched using a BACnet WhoIsRequest
that will be sent as broadcast. Since this method isn't reliable (devices may not be found) it is recommended to specify the host ip address too.
The following settings may be applied when connecting to a device:
Property key | Description | Default value |
---|---|---|
broadcastIP | IP address for sending broadcast messages | 255.255.255.255 |
localBindAddress | IP address that will be used for binding the local device | 0.0.0.0 |
localDevicePort | UDP network port of the local device instance | 0xBAC0 |
remoteDevicePort | UDP network port of the remote device instance | 0xBAC0** |
localInstanceNumber | the instance number of the local device between 0 and 4194302* | auto-increment number starting from 10000 |
isServer | if set to true , the local device is set as server that provides BACnet objects |
false |
* if a local device for the specified local device port already exists, the local device instance number configured in the settings string will be ignored
** the local device port must be equal to the remote device port to enable communication. If both ports are specified in the settings differently, the local device port property has the higher priority.