Blog

BACnet/SC (Secure Connect) Explained for Field Technicians: Hubs, Certificates and Troubleshooting

2026-12-04 · 13 min read BACnetBACnet/SCSecure ConnectcybersecurityTLScertificates

Short answer

BACnet/SC (Secure Connect) is a BACnet data link defined in Annex AB of ASHRAE Standard 135. Each device opens an encrypted WebSocket (TLS 1.3) to a hub, and both sides prove who they are with X.509 certificates signed by the site's certificate authority. There are no broadcasts on the wire, no BBMDs and no UDP 47808: devices are addressed by a 6-byte virtual MAC (VMAC) and the hub forwards messages between them.

More and more specifications now ask for BACnet/SC, and the first time you meet it on site it feels nothing like the BACnet/IP you know. There is no Who-Is flying across the subnet, no BBMD table to fill, and a controller that "has the right IP address" can still refuse to talk to you. The reason is that BACnet Secure Connect is built on certificates and a hub, not on UDP broadcasts.

This guide explains how BACnet SC works, what you need before going to site, how to connect to an SC hub step by step (screenshots from a simulated site), and how to fix the usual failures. Facts come from Annex AB of ASHRAE Standard 135, the ASHRAE BACnet/SC white paper and vendor documentation.

What is BACnet/SC (Secure Connect)?

BACnet/SC is a BACnet data link layer in which every device keeps an encrypted, authenticated connection to a hub. It was added to ASHRAE Standard 135 by Addendum 135-2016bj (published in 2019) as Annex AB, and it has been part of the standard since the 2020 edition.

BACnet/IP and MS/TP have no authentication and no encryption: anyone who reaches UDP 47808 can read points and often write them. BACnet/SC fixes this at the data link level:

  • Transport: a WebSocket inside TLS 1.3, over TCP. A hub address looks like a web address: wss://10.0.0.5:4443.
  • Mutual authentication: both the device and the hub show an X.509 certificate signed by the site's certificate authority (CA). A device without a valid certificate from that CA is refused before it can send a single BACnet message.
  • Encryption: a packet capture shows only TLS records, not BACnet services.
  • Same BACnet above: the objects, properties and services (ReadProperty, WriteProperty, COV, alarms, trend logs) do not change. Only the way packets travel changes. A BACnet/SC network is simply one more BACnet network, with its own network number, that a BACnet router can join to BACnet/IP or MS/TP.

BACnet/SC vs BACnet/IP at a glance

BACnet/IP (Annex J) BACnet/SC (Annex AB)
Transport UDP datagrams, usually port 47808 TLS 1.3 WebSocket over TCP, port chosen for the hub
Who talks to whom Any device to any device Each node to the hub (plus optional direct connections)
Broadcasts IP broadcasts, BBMDs to cross subnets Sent to the hub, which copies them to every node
Device address IP address + UDP port (6 bytes) VMAC, 6 random bytes, plus a 16-byte device UUID
Authentication None X.509 certificates on both sides
Encryption None TLS 1.3
Firewall rule UDP 47808 both ways One TCP port, nodes connect out to the hub
Crosses NAT and routed networks Hard (broadcasts, return paths) Easy: outgoing TCP like a web connection

How does BACnet/SC work? Hub, nodes and VMACs

A BACnet/SC network is a star: every node connects to a hub, and the hub forwards messages between the nodes. The pieces have precise names in Annex AB:

  • Node: any device on the SC network (a controller, a router port, a workstation).
  • Hub function: the part that accepts the connections and passes messages along. It runs inside a device, often a supervisory controller, a router or a BMS server. Only one primary hub is active per SC network.
  • Primary hub and failover hub: each node is configured with two hub addresses. It connects to the primary; if the primary cannot be reached, it connects to the failover hub. Check how your devices handle failover in their documentation: support for automatic failover varies between products and firmware versions.
  • Hub connector: the part of each node that keeps the connection to the hub alive and reconnects after a failure.
  • Direct connections (optional): two nodes can also connect straight to each other (WebSocket subprotocol dc.bsc.bacnet.org instead of the hub's hub.bsc.bacnet.org). Few sites use this.

VMAC: the address of an SC node

On BACnet/IP the MAC address of a device is its IP address and port. On BACnet/SC each node has a VMAC (virtual MAC address), 6 bytes, usually random, generated by the device. The hub routes messages by VMAC, and a message to the VMAC FF:FF:FF:FF:FF:FF is a broadcast that the hub copies to every node.

If two nodes ever share a VMAC, the hub refuses the second one with a "duplicate VMAC" error. Each node also has a 16-byte device UUID that identifies the device itself.

The device instance number must still be unique across the whole internetwork, as on BACnet/IP (see device instance, network number and MAC).

The BVLC-SC messages

Every packet on a BACnet/SC connection starts with a BVLC-SC header: a function byte, a flags byte, a 2-byte message ID, then optional originating and destination VMACs. These are the functions you will see in a decoded capture:

Code Function What it does
0x00 BVLC-Result Positive or negative answer to a request (with an error class and code)
0x01 Encapsulated-NPDU Normal BACnet traffic: Who-Is, I-Am, ReadProperty, COV, everything
0x02 / 0x03 Address-Resolution / -ACK Ask a node for its WebSocket address for a direct connection
0x04 / 0x05 Advertisement / -Solicitation A node tells (or is asked) its hub connection status
0x06 / 0x07 Connect-Request / Connect-Accept Opening handshake: VMAC, device UUID, maximum BVLC and NPDU sizes
0x08 / 0x09 Disconnect-Request / -ACK Clean close of the connection
0x0A / 0x0B Heartbeat-Request / -ACK Keep-alive when the connection has been quiet
0x0C Proprietary-Message Vendor-specific use

What do you need before connecting to a BACnet/SC network?

You need three files and one address: the site CA certificate, a certificate for your PC signed by that CA, the private key that goes with it, and the hub's wss:// address. Get them from the integrator or the owner's IT before you go.

Item Typical file Who provides it What it is for
Site CA certificate ca.crt or .pem Integrator, owner or IT Your PC trusts the hub (and the hub trusts you) because both certificates come from this CA
Operational certificate of your PC baclens.crt, workstation.pem Signed by the site CA Proves your PC is allowed on the network
Private key .key or .pem Created on your PC, never sent Proves the certificate is really yours
Hub address wss://10.0.0.5:4443 Site documentation Where to connect (primary, and failover if any)

Either the integrator makes the key and certificate and sends you both (simple, but the private key travels), or you make a certificate signing request (CSR): your tool creates a private key that stays on your PC and a .csr file that the CA signs. The CSR way is cleaner, and Annex AB also uses CSRs to renew device certificates.

There is no single standard TCP port: it is part of the hub URI, so read it from the site documentation.

How to connect to a BACnet/SC hub, step by step

The screenshots below come from BacLens, a free BACnet explorer that supports BACnet/IP, BBMD, MS/TP and BACnet/SC, connected to a simulated SC site: a hub on wss://127.0.0.1:4453 with two SC controllers, a rooftop heat pump (device 31001) and an energy meter (device 31002). The certificates are test certificates made for the simulator. On a real site only the addresses and file names change.

Step 1: Enter the hub address and load the certificates

Create a new connection, choose the BACnet/SC type, enter the hub address and, if the site has one, the failover hub. Then load the three files: the site CA certificate, the certificate of this PC and its private key. Leave the VMAC empty unless the site asks for a fixed one; a random one is generated.

BacLens BACnet/SC connection settings: hub address wss://127.0.0.1:4453, optional failover hub, BacLens VMAC B2:38:99:3A:77:04, site CA and PC certificates loaded, private key saved, and the check chips This PC certificate 1094 days left, Site CA 3649 days left, signed by this CA, private key matches

Check the line under the files (outlined) before saving. Here all four are green: the PC's certificate has 1,094 days left, the site CA 3,649 days, the certificate is signed by this CA, and the private key matches. Each one, in red, is a classic failure: an expired certificate, a certificate from another CA, or a key from an earlier certificate.

No certificate yet? "Create key + request (CSR)" makes the key on this PC and a CSR for the site's CA.

Step 2: Check that the hub accepted the connection

After saving, the connection card should say connected to the primary hub.

BacLens connection card for the Annex (BACnet/SC) connection: BACnet/SC wss://127.0.0.1:4453, connected to the primary hub, 2 devices, with the explanation of the encrypted TLS 1.3 connection, BacLens VMAC B2:38:99:3A:77:04 and 18 messages sent and 18 received

The explanation (outlined) sums up what is happening: an encrypted TLS 1.3 connection to the hub, every device of the site on the same hub, messages passed by VMAC. It also shows our VMAC, B2:38:99:3A:77:04, and that 18 messages were sent and 18 received. "Connected" means the TLS handshake (certificates on both sides) and the BACnet/SC Connect-Request / Connect-Accept exchange both succeeded.

Step 3: Discover the devices behind the hub

Discovery works as usual: the Who-Is goes to the hub, which copies it to every node, and each device answers with an I-Am.

BacLens network map of the BACnet/SC connection: BacLens on a secure WebSocket to the hub wss://127.0.0.1:4453, BACnet/SC network with 2 devices, SC-HP-1 device 31001 with VMAC 0x025c00007919 and 5 points, SC-MTR-1 device 31002 with VMAC 0x025c0000791a and 2 points

The map shows the structure: this PC, the secure WebSocket to the hub, then the two nodes. Notice the address next to each device instance: SC-HP-1 is device 31001 at VMAC 0x025c00007919, SC-MTR-1 is device 31002 at VMAC 0x025c0000791a. From here you read and write points as on any BACnet network.

Step 4: Run a connection test

A connection test confirms the link to the hub, handy for a commissioning report.

BacLens connection test for the Annex (BACnet/SC) connection: step 1 BACnet/SC hub connected, everything works on this connection

When it fails, it gives the TLS or WebSocket error (refused certificate, closed port) instead of a generic "no response", so you know whether to call IT or the integrator.

Step 5: Look at the decoded traffic

TLS hides the traffic from a network capture, but the workstation holds its own keys, so its analyzer can show every message to and from the hub.

BacLens analyzer on the BACnet/SC connection: Who-Is to broadcast, I-Am from devices 31001 and 31002, Who-Is-Router-To-Network, then ReadProperty object-name, vendor-name and model-name to SC-HP-1 and SC-MTR-1 and their replies, all as Encapsulated-NPDU between VMAC 0xb238993a7704 and the device VMACs

Read it from the bottom up. Packet 1 is the Who-Is sent to "broadcast"; packets 2 and 3 are the I-Am answers from devices 31001 and 31002, 2 ms later. Packet 4 is a Who-Is-Router-To-Network (looking for routers to other networks; none here). Packets 5 to 16 are ReadProperty requests for object-name, vendor-name and model-name and their replies. Every line is an Encapsulated-NPDU: on BACnet/SC, all normal BACnet traffic travels in that one BVLC-SC function, between our VMAC 0xb238993a7704 and the VMAC of each device.

To practise this before a real job, the free BacLens Sim can start a BACnet/SC test hub with SC controllers and test certificates (its --sc option), alongside its BACnet/IP and MS/TP devices.

How do you set up a BACnet/SC network on a site?

Plan the CA first, then the hubs, then the devices, and test one node end to end before rolling out. A typical sequence:

  1. Decide who runs the certificate authority. The owner's IT, the integrator, or a CA built into the BMS server. Write down where the CA key is kept: losing it means re-issuing every certificate.
  2. Choose the primary and failover hubs. Ideally on different power and network paths, with fixed IP addresses or DNS names.
  3. Open one TCP port to the hubs. Nodes connect out to the hub: one rule, no UDP, no broadcast forwarding.
  4. Issue one operational certificate per device. Load the CA certificate into every device too.
  5. Configure each device's SC port: primary hub URI, failover hub URI, and the timers (reconnect, heartbeat, connect timeout) if the defaults don't suit the site. These live in the device's Network Port object; values and ranges vary by product, so use the vendor's recommendations.
  6. Give the SC network a BACnet network number that is unique on the internetwork, and configure the router ports between SC and the other networks.
  7. Test with a workstation as in the steps above: connected to the hub, all devices discovered, reads and writes working, then switch off the primary hub and confirm the nodes move to the failover.
  8. Record certificate expiry dates in the maintenance plan, with a reminder well before the first one runs out.

Common BACnet/SC problems and how to fix them

"Connection refused" or timeout to the hub

The TCP connection never opens. Check the IP and port in the URI, that the hub function is on, and that firewalls allow that TCP port. Also check you typed wss://, not ws://.

TLS handshake fails: certificate refused

The TCP connection opens and is closed at once. The usual reasons, in order of frequency:

  • Expired certificate, on your side or on the hub. Check the dates. A clock that is far off on a controller or on your PC makes a valid certificate look expired or "not yet valid", so check the time too.
  • Wrong CA. Your certificate was signed by another CA (a test CA, a previous contractor's) than the one the hub trusts, or the CA file you loaded is not the site's.
  • Key and certificate don't match. You loaded a new certificate with an old key or the other way round.
  • Old TLS stack. BACnet/SC requires TLS 1.3, and Annex AB limits the allowed cipher suites. A generic TLS library is not automatically compliant, so use tools that list BACnet/SC support explicitly.

Connected to the hub, but no devices answer

The link is up, but Who-Is finds nothing. Either the devices are not connected to the same hub (check their SC port status on their own interface), they are connected to the failover hub while you are on the primary (a node on the failover hub cannot reach nodes still on the primary, so check each device's hub status and follow the vendor's failover design), or you are looking for a device on another BACnet network behind a router that is not configured.

A node keeps disconnecting and reconnecting

Look for a duplicate VMAC (two devices configured with the same fixed VMAC, or a cloned configuration), heartbeat timers shorter than the network delay on a slow link, or a firewall or proxy that closes idle TCP sessions. Many firewalls and some proxies cut idle connections; the heartbeat exists to keep the session active, so its interval must be shorter than that idle timeout.

Wireshark shows nothing useful

Expected: the traffic is encrypted. Use the diagnostics of an endpoint that holds the keys (the workstation or the hub).

Is BACnet/SC worth it, and what about existing sites?

For new projects that cross IT networks, connect to the cloud or need to meet a security policy, BACnet/SC is the standard way to secure BACnet. It needs one outgoing TCP connection instead of open UDP 47808, and uses the certificate and TLS practice IT already manages.

The costs are real too: someone must run the CA and renew certificates, and older controllers and tools may not support SC. On existing sites the common path is a mix: BACnet/SC on the backbone and for remote access, with routers to the existing BACnet/IP and MS/TP networks. Until then, keep BACnet/IP on its own VLAN behind a firewall, as explained in BACnet/IP port 47808, firewalls and VLANs, and keep BBMDs where BACnet/IP needs them (BBMD explained).

FAQ

What is BACnet/SC?

BACnet/SC (Secure Connect) is a BACnet data link defined in Annex AB of ASHRAE Standard 135. Each device opens an encrypted WebSocket (TLS 1.3) to a hub and proves its identity with an X.509 certificate signed by the site's certificate authority. Above the data link, BACnet objects and services are unchanged.

What port does BACnet/SC use?

BACnet/SC runs over TCP, not UDP 47808. There is no single fixed port: the port is part of the hub's wss:// address and is chosen when the hub is configured. Read it from the site documentation, and open only that TCP port from the nodes to the hubs.

Does BACnet/SC need a BBMD?

No. BACnet/SC has no IP broadcasts. A broadcast is sent to the hub, which copies it to every connected node, so BBMDs and foreign device registration are not used. BBMDs are still needed on the BACnet/IP parts of a site.

What certificates does BACnet/SC need?

Each device needs an operational certificate signed by the site's CA, the private key that matches it, and the CA certificate so it can check the others. A workstation joining the network needs the same three files. The private key should be created on the device and never shared; a certificate signing request (CSR) lets the CA sign it without seeing the key.

What happens when a BACnet/SC certificate expires?

The TLS handshake fails and the device stops communicating until the certificate is renewed. Record every expiry date and renew early. A wrong device clock can also make a valid certificate look expired.

What is a VMAC in BACnet/SC?

A VMAC is a 6-byte virtual MAC address that identifies a node on a BACnet/SC network, normally generated at random by the device. The hub forwards messages by VMAC, and the VMAC FF:FF:FF:FF:FF:FF means broadcast. If two nodes have the same VMAC, the hub refuses the second one.

Can BACnet/SC and BACnet/IP work on the same site?

Yes. A BACnet/SC network has its own network number, and a BACnet router with an SC port and an IP or MS/TP port joins them. Existing controllers can stay on BACnet/IP or MS/TP.

Is BACnet/SC the same as running BACnet/IP over a VPN?

No. A VPN protects the path between sites, but inside it BACnet/IP is still unauthenticated. BACnet/SC authenticates and encrypts each device's own connection, so only devices with a valid certificate from the site CA can join.