Inspect an MS/TP frame
BACnet MS/TP carries frames between stations on a shared RS-485 serial link. Copy one complete MS/TP frame from a capture, starting with the 55 FF preamble. The inspector validates the header, verifies the data checksum when present, and checks the record boundary before printing the frame type, addresses and lengths.
Try a captured token
bacnet-kit mstp-frame '55 ff 00 01 02 00 00 40'
Frame TOKEN (0)
Source 2
Destination 1
Data octets 0
Wire octets 8
Pad none
This token was captured from station 2 to station 1. In capture order the destination comes first. Uppercase, lowercase and contiguous hex all work. ABB capture example
| Bytes | Field | Reading |
|---|---|---|
55 FF | Preamble | Start of the frame |
00 | Type | Token |
01 02 | Destination, source | Station 1 receives from station 2 |
00 00 | Header Length | Zero data octets |
40 | Header CRC | Matches the preceding five header octets |
Read a binary record
bacnet-kit mstp-frame --raw < capture.bin
Use this form for exported packet bytes. In Wireshark, select a single MS/TP packet and export its packet bytes, including the link header. A whole pcap or pcapng file also contains capture headers. The inspector accepts one record of up to 1,517 octets, including an optional final FF. Binary input ends at EOF. The output contains metadata only.
Interpret a result
Data octets counts the decoded data. Wire octets counts everything supplied, including the preamble, checksums and optional pad. In the example above the inspector reports 502 data octets and 517 wire octets. Wireshark’s header Length is 507. For extended frames that field counts encoded data and encoded CRC minus two. ASHRAE frame format and encoding
The header or data CRC failed
Check the selected record begins at the preamble and includes its final integrity field. Export the original bytes again. A single capture cannot distinguish an export error from corruption on the wire.
The record contains trailing bytes
Select exactly one frame. A single FF pad is accepted after a complete frame. A second pad or a second packet causes an error.
The frame type is unsupported
The inspector handles standard BACnet types 0 through 7 and extended data types 32 and 33. Other protocols and proprietary types need their own interpretation.
A successful result describes the selected link frame. Token circulation, inter-octet timing and driver turnaround need timestamped traces from the target board. Independent vectors and embedded verification