On this page
BACnet MS/TP client
Select BACnet MS/TP client to collect BACnet object properties over RS485 or transparent TCP. Discovery, property access, RPM, priorities, COV, and event operations follow the BACnet/IP client. See Collection Configuration for common device operations. Use the separate BACnet/IP client for BACnet/IP devices.
Compatible devices and models
| Device / series | Connection requirements |
|---|---|
| BACnet MS/TP RS485 building automation devices and DDC controllers | Use an exclusive RS485 port or a TCP adapter that transparently transports raw MS/TP frames. Match local/target stations and device instance. Collection requires master mode. COV, trends and writes depend on device services and link roles. |
Match the controller MAC and object identifiers
Record the controller’s RS485 speed, MS/TP MAC and BACnet Device Instance separately. For example, the controller can use MAC 7 and Device Instance 1001, while the gateway uses MAC 12.
- Connect the controller and gateway RS485 adapter to the same bus. Follow the manufacturers’ D+/D− and reference-ground definitions; A/B labels can differ. Apply termination at the physical ends and avoid star branches. All stations use the same baud rate and 8N1.
- Enable MS/TP in the controller engineering settings, assign unique MAC
7and Device Instance1001, and locate Analog Value 4 in its object list. Max Master must cover the active master addresses. A slave-only peer can answer directed requests without appearing in broadcast discovery. - Create a serial channel and add this plugin. Set local Station
12, Mastertrue, MaxMaster31and MaxInfoFrames1; set target station7and target device instance1001. The local station must be unique and no greater than MaxMaster. - Add read-only
RoomTemperature, typeFloat, array length1, with this address. Object instance4is neither the target MAC nor a register offset.
{"deviceInstance":1001,"objectType":2,"objectInstance":4,"propertyIdentifier":85}- Check the token, successor station and frame errors in core status, then read the property. Compare it with the same Present_Value in the controller object browser. For CRC/frame errors, check wiring and serial settings before object addressing.
| Local link field | Configuration and effect |
|---|---|
| Station | Unique gateway MAC, 0–127 for a master. A duplicate MAC disrupts token passing and response ownership. |
| Master | Keep true so the gateway participates in token passing and initiates requests. |
| MaxMaster | Default 127, range 0–127. Cover the local station and actual masters. A smaller valid range reduces successor polling. |
| MaxInfoFrames | Default 1, range 1–255. Frames sent per token ownership; increasing it can increase other masters’ waiting time. |
| MaximumNpduLength | Default 501 bytes, range 50–1497. Values above 501 require compatible extended-frame support. |
| MaximumPendingFrames | Default 128, range 1–4096. Bounds queued outgoing frames; reduce excessive request rates before increasing it. |
| MaximumReceivedFrames | Default 128, range 1–4096. Bounds received application frames; additional buffering does not fix serial or addressing errors. |
COV, event, application-tag and priority settings follow the linked BACnet/IP instructions, with the gateway MS/TP MAC as the notification destination. Include token waiting in the total request timeout.
Create a serial channel and device
- Open Development Configuration → Collection Configuration, create a serial channel, and select the physical RS485 port.
- Match every station’s baud rate: 9600, 19200, 38400, 57600, 76800, or 115200. Use 8 data bits, no parity, one stop bit, and no flow control. The adapter must automatically manage half-duplex direction.
- Add a BACnet MS/TP client device. Each collection device currently owns its serial channel exclusively and has one target station.
- Set MS/TP connection settings, Target MS/TP station, and Target device instance. Save, reopen to verify, and enable the configuration.
Local binding and remote IP endpoints are unused. Other programs, collection devices, and forwarding targets must not open the same serial port at the same time.
The example uses COM1, 38400 baud and 8N1. Replace the port and speed with the actual bus settings.
In device properties, configure target station 7 separately from device instance 1001. Discovery receives information from discoverable devices; directed collection uses the configured target.
| Parameter | Description |
|---|---|
| MS/TP connection settings | Required local link settings, enabled by default. Collection requires master mode. |
| Target MS/TP station | Required unicast station from 0 through 254, distinct from the local station. |
| Target device instance | 0–4194303. Must match the peer and each variable’s deviceInstance. Configure it separately from the link station. |
| Request timeout | Default 3000 ms, range 100–120000. Account for token waiting on a busy bus. |
| Maximum RPM properties | Default 16, range 1–32. Reduce batches for smaller devices. |
| Maximum datagram bytes | Default 1476, range 64–1476. The effective internal message budget is also bounded by NPDU length plus four bytes. With the default 501-byte NPDU, the budget is at most 505 bytes. |
Discovery, COV, events and writes
These settings apply to this MS/TP device. Notifications use the same RS485 link. Establish directed property reads before enabling services supported by the controller.
| Parameter | Configuration and effect |
|---|---|
| Enable device discovery | On by default, allowing Who-Is from the debug page. A known target station and device instance can be configured directly; a slave-only peer cannot initiate broadcast discovery replies. Disabling discovery does not change the configured target instance. |
| Enable COV subscriptions | Off by default. Creates change-notification relationships for variable objects. Unconfirmed, over-capacity or expired relationships continue polling; the peer must support the requested COV service. |
| COV lifetime | Default 300 seconds, range 30–3600, renewed before expiry. Allow time for renewal on a busy bus; shorter leases increase traffic. |
| Maximum COV subscriptions | Default 32, range 1–64, bounding this device’s object/property relationships. Count the objects needing notifications; a larger limit cannot add COV support to an unsupported object. |
| Confirmed COV notifications | Off by default, using unconfirmed notifications. When enabled, the peer sends confirmed notifications and the gateway acknowledges valid messages. This adds link round trips and must match controller capabilities. |
| Receive device events | Off by default. Accepts events matching the target and process identifier for event forwarding. Configure the gateway’s MS/TP destination in the controller’s Notification Class as well. |
| Event process identifier | Default 1, matching this recipient’s process identifier in Notification Class. It is separate from the MAC, Device Instance and variable object instance. A mismatch prevents publication as this device’s event. |
| Refresh events on reconnect | On by default. With event reception enabled, queries event state after startup, reconnection and resume to recover state changes during disconnection. The peer must support event-state queries. |
| Maximum event refresh pages | Default 8, range 1–32, bounding total pages in one refresh; each maintenance pass reads one page. Reaching the limit with more pages remaining does not establish that other alarms have cleared. |
| Write priority | Default 16, range 1–16; lower numbers have higher BACnet command priority. For commandable objects, inspect other Priority_Array entries. A higher-priority command can keep Present_Value unchanged after a successful write acknowledgment. |
| Write application type | Default Real, used when an Object variable has no address-level application type. Ordinary Boolean, integer, Float, Double and String variables use their corresponding types; an explicit address override takes precedence. Match Enumerated, OctetString and other special types to the peer property. |
The common Write priority scheduling switch controls gateway read/write scheduling separately from BACnet’s numeric priority. See Device parameters for retry count, read/write duty cycle and scheduling. Retries and token waiting add bus latency; they cannot correct duplicate stations or invalid objects.
Example local link settings:
{"Station":12,"Master":true,"MaxMaster":31,"MaxInfoFrames":1,"MaximumNpduLength":501,"MaximumPendingFrames":128,"MaximumReceivedFrames":128}Station is the local address. Masters use 0–127 and must not exceed MaxMaster. Set MaxMaster from 0 through 127 to include the actual masters on the bus. MaxInfoFrames, from 1 through 255, limits information frames per token. Station addresses must be unique. The example could use target station 7 and device instance 1001; replace these values with actual device settings.
Select Edit fields beside MS/TP connection settings to edit local station and capacity settings. Confirm and fill updates the property; OK in the device dialog saves it. See Complex plugin properties.
Ordinary NPDUs allow 501 bytes. MaximumNpduLength accepts 50–1497; values above 501 require extended-frame support at the peer. Pending transmit and application receive queues default to 128 frames each, from 1 through 4096. Exhaustion reports an error or a receive-drop count.
Variables, subscriptions, and debugging
Variables use the shared BACnet object-property address. For a target device instance of 1001:
{"deviceInstance":1001,"objectType":2,"objectInstance":4,"propertyIdentifier":85}This reads Present_Value of Analog Value 4. Match the actual object type, instance, and property. Address fields, write types, priorities, COV, trends, files, and device-management rules are described in BACnet client operations.
Open Edit fields next to the address. Set device instance 1001, object type AnalogValue, object instance 4 and property PresentValue. Leave array index unset for this scalar. For an array property, index 0 reads its length and element indices start at 1. Leave the write application type unset for automatic selection from the variable type; specify it when the peer expects an enumeration, octet string or date.
After enabling, inspect the local role, token state, successor, queues, frame counters, and errors under Protocol Debug → Core status, then read an actual point. Discovery, COV, and event sources use mstp:station. Use an explicit target station for a slave-only peer: it cannot initiate broadcast discovery responses or notifications.
For device events, configure the peer’s Notification Class destination with this collection master’s actual address, such as mstp:12, and match the process identifier. BBMD and Foreign Device settings belong to IP networking and are absent from this plugin.
Closing the link ends current transactions; reconnecting establishes subscriptions again. This plugin does not route between IP and MS/TP networks.
Transparent TCP channel
Select TCP client to connect to a serial server and set its actual IP address and listening port as the remote endpoint. If the adapter initiates the connection, select TCP service and bind to a local gateway interface and listening port, or use 0.0.0.0:port for all local IPv4 interfaces. A binding address must belong to the gateway.
Both modes carry complete raw MS/TP frames. Continue configuring local station, target MS/TP station, and target device instance. Gateway serial fields are unused for TCP; configure baud rate, 8N1, no flow control, and half-duplex direction at the remote adapter. Disable registration packets, heartbeat packets, and extra framing, and keep forwarding latency low enough for MS/TP token and response deadlines.
Each collection device exclusively owns its channel. A TCP service accepts one active link. TCP connection direction and MS/TP token role are independent; collection always requires master mode. This transparent channel cannot connect directly to BACnet/IP UDP devices.
| Symptom | Action |
|---|---|
| Port cannot open | Check port name, system permissions, and ownership by other programs or targets. |
| No token or repeated frame errors | Check RS485 wiring, termination, baud rate, 8N1, adapter direction control, and duplicate station addresses. |
| Discovery is empty but directed reads work | Check whether the peer is slave-only; use an explicit target station. |
| Timeout or segmentation failure | Check target station and device instance, reduce RPM batches, and verify NPDU and segmentation capabilities at both ends. |




