BACnet MSTP
BACnet MSTP
Physical and Electrical considerations Packet structure Receive Frame State Machine Slave and Master Node State Machine Design issues (timing, buffering, MAC address)
510 +5 Rx Tx RTS
510
47K
Baud Rates: 9600, 19200, 38400, 57600, 76800 Parity: no Start Bits: 1 Stop Bits: 1 Least Significant Bit First (same as EIA-232) Uses standard UART
2
This may not be the ideal circuit for EIA-485. There has been much debate in the BACnet MS/TP working group about it.
2 octets
DATA CRC
Good CRC
IDLE
Error
PREAMBLE
NotPreamble
ut eo m ror Ti Er
Ti m eo
FrameTooLong
NotForUs
BadCRC
NoData
ut
Prea
mble
DATA
Da
C2 CR
HeaderCRC
r ro Er
Frame Type
HEADER
ta
Destination
CRC 1
HEADER CRC
Length 2 Source Data Octet Length 1
LostToken
ReceivedDataNeedingReply
NO TOKEN
SawFrame
IDLE
Reply DeferredReply
U ed iv ce Re
ram e
ed Un ex pe cte dF
ok en Us er
e xp ne
Sa wT
Fr ed ct
dT eive Rec
Re ce iv
am
Token
Generate
PASS TOKEN
Fin dN ew Do Su ne cce Wit Re sso ceiv hP r FM ed Re p ly To PF M
RetrySendToken
n oke
s Re
S en dA n ait dW
SendMaintenancePFM SoleMasterRestartMaintenancePFM
SoleM aster DeclareS oleMas
USE TOKEN
SendNextPFM
ter
Do
ne
ReceivedUnwantedFrame
In i t
ial izi n
ReceivedDataNoReply
ReceivedDataNeedingReply ReceivedInvalidFrame
IDLE
Reply
Cannot Reply
MS/TP Timing
Tframe_abort < 60 bit times
Token
Token
Token
55 FF 00 72 0A 00 00 A9
55 FF 00 03 72 00 00 95
55 FF 00 A0 03 00 00 04
MS/TP Timing
Poll For Master Token
55 FF 01 07 03 00 00 6D
55 FF 00 0A 03 00 00 04
Token
55 FF 05 89 0A 00 12 12 01 04 02 05 53 07 C4 02 80 00 01 0E 31 00 62 FF EF 0F 41 2D
55 FF 00 72 0A 00 00 A9
May use Reply Postponed Practical use only in RTOS or queued data Single buffer, single thread, just reply Buffer, queue - match packet signature
Master Node MAC 0-127 (0x00 - 0x7F) Slave Node MAC 0-254 (0x00-0xFE) Broadcast 255 (0xFF) DIP switch, dials, LCD Non-volatile, same after power cycle or reset Proposed Auto Addressing (DHCP, ZeroConfig)
10