Skip to Content
On this page

BACnet MS/TP server

Select BACnet MS/TP server to publish forwarding-group variables to BACnet masters over RS485 or transparent TCP. Object mapping, permissions, command priorities, calendars, schedules, trends, files, and device management follow the same rules as the BACnet/IP server. See Data Forwarding for group and target operations.

Create a serial target

  1. Open Development Configuration → Data Forwarding, create or select a group, and ensure the selected source variables are initialized and online.
  2. Add a BACnet MS/TP server target, select the serial channel type, and choose an exclusive RS485 port.
  3. Match the bus baud rate: 9600, 19200, 38400, 57600, 76800, or 115200. Use 8N1 and no flow control. The adapter must automatically manage half-duplex direction.
  4. Set MS/TP connection settings, a unique BACnet device instance, a device object name, and the assigned vendor ID.
  5. Configure group variables using BACnet object mapping, save, reopen to verify, and enable the target.

Local binding and remote IP endpoints are unused. Collection devices, other forwarding targets, and external programs must not open the same serial port concurrently.

Example local link settings:

{"Station":12,"Master":true,"MaxMaster":31,"MaxInfoFrames":1,"MaximumNpduLength":501,"MaximumPendingFrames":128,"MaximumReceivedFrames":128}
ParameterDescription
MS/TP connection settingsRequired local link settings. Missing or invalid settings prevent listening.
Local station StationMasters use 0–127, no higher than MaxMaster; slave-only stations use 0–254. Addresses must be unique on the bus.
Master mode MasterEnabled by default. Participates in the token ring and can initiate I-Am, COV, and event notifications. When disabled, replies only within request response windows. The BACnet application remains a server.
Highest master station MaxMaster0–127. Include the actual masters on the bus.
Information frames per token MaxInfoFrames1–255; default 1.
Maximum NPDU bytesDefault 501, range 50–1497. Values above 501 require extended-frame support at the peer.
Transmit and receive queue capacitiesDefault 128 frames each, range 1–4096.
Maximum datagram bytesDefault 1476, range 64–1476. The internal message budget is also bounded by NPDU length plus four bytes, at most 505 bytes with default link settings.
Device instanceDefault 1001, range 0–4194303. Configure it separately from the link station.

See BACnet server settings for other parameters. Slave-only stations respond to requests, reject COV subscriptions, and cannot have unsolicited notification destinations. Keep master mode enabled for COV, events, or initiated discovery responses.

Defaults are Station 0, Master true, MaxMaster 127, and MaxInfoFrames 1. The serial link is 8N1 with no handshake. Analog/Binary/MultiState object mapping, units, relinquish defaults, alarms, and write permissions use the same individual fields as the linked BACnet/IP server manual. The same is true for time-zone, management, calendars, schedules, trends, files, notifications, and work limits; pure-slave mode cannot initiate COV or event traffic.

MS/TP serial, device, and link settings

Wire the bus and map one object

Use an RS485 bus with polarity, reference ground, shield, end termination, and bias following the controller/adapter manuals. A/B labels can differ between vendors. Do not connect RS232 directly. Match the DDC’s baud rate and use automatic half-duplex direction control.

  1. Set gateway Station 12, Master enabled, and MaxMaster 31. Use another unique DDC station such as 7; its Max_Master must include station 12. DeviceInstance 1001 is independent of the 0–127 master MAC address.
  2. Map Memory.Forward_Value as AnalogValue, instance 1001, name Forward_Value, units 95 (no units). The instance is a decimal BACnet object identifier, not Modbus 40001 or a byte offset.

MS/TP object mapping and permissions

  1. From an independent MS/TP master, read Device 1001 at station 12, object analog-value,1001, property Present_Value. Input objects are read-only. To write an Output/Value object, enable target, variable, and source RPC permissions, specify a priority such as 8, and inspect Priority_Array and the source value. Release with BACnet Null at the same priority; a higher-priority command can prevent a lower-priority write from changing the output.

Reads, writes, and notifications

After enabling, inspect mstp:station, token state, successor, queues, and frame errors in debugging. The mapped-point table shows current objects and permissions. Verify actual reads and writes from an independent master on the bus. Network read and Network write and read back do not reopen the local station’s serial port; these operations require an independent serial master.

Writes require target and variable permissions plus source-variable RPC capability. Input objects are read-only. Commandable objects use sixteen priorities; write BACnet Null at the original priority to release a command. See Reads, writes, and COV.

In master mode, Notification Class destinations use an explicit address such as mstp:7. Broadcast, remote-network, and IP destinations are rejected. Match process identifiers and acknowledgement policies to the receiver. COV and events share the same capacity, permission, and lifecycle rules described under Device alarms and events.

Stopping or reconnecting the link revokes old subscriptions and transactions. External masters should read current state and subscribe again. This plugin does not route between IP and MS/TP networks.

Transparent TCP channel

Select TCP client to connect to a serial server using its actual IP address and port, or select TCP service to accept an adapter’s connection. Bind the service to a local gateway interface and port, or use 0.0.0.0:port for all local IPv4 interfaces. Do not bind to another device’s address. Each target accepts one active TCP link.

TCP carries raw MS/TP frames and preserves station, token role, and object configuration. A BACnet application server may initiate the TCP connection; connection direction does not determine token role. Configure physical 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 within MS/TP token and response deadlines. Gateway serial fields are unused for TCP.

Notification destinations still use mstp:station. Verify network reads and writes through an independent MS/TP master.

SymptomAction
Port cannot openCheck port name, system permissions, and ownership by other programs.
TCP connected but requests time outCheck transparent forwarding, adapter serial settings, half-duplex direction control, latency, and station addresses. Disable extra registration and heartbeat packets.
Read or write timeoutCheck unique stations, wiring, baud rate, 8N1, adapter direction control, and token state.
Reads work but subscriptions or notifications failCheck master mode, destination station, lease, acknowledgements, and capacity.
Missing objects or rejected writesCheck group scope, object identity, source state, permissions, and command priority.