📄 rmtnetwk.vts
字号:
; Testing the ability to respond to application layer messages originating
; from remote networks.
;
; Version 2.0
;
; written by Steven T. Bushby, 03/18/98
;
; This test script relies on required properties of the Device object and
; the ReadProperty Service. The TD and IUT are actually on the same local
; network. The TD inserts network layer protocol information to simulate
; messages from a remote network.
;
; In the REFERENCE sections "(B)" refers to the BACnet standard and
; "(T)" refers to the testing addendum.
;--------------------------------------------------------------
SETUP Processing Messges from Remote Networks
;--------------------------------------------------------------
;
; Setting up the hardware parameters for the VTS computer (TD).
;
;
;
; the network parameters for the TD
;
NET_1 = 1, ETHERNET, 0
-- The network which is directly-connected to the TD
-- and can be used to reach the IUT.
-- Adjust the parameters as needed to reflect the actual
-- physical environment. The first value represents the
-- physical network number, the second value the physical
-- network type and the third value the physical port.
MY_MAC = 00a0242daf41 -- MAC address of the TD
-- replace with you TD address
;--------------------------------------------------------------
;
; Setting up the hardware parameters for the IUT.
;
;
IUT_MAC = 00602d00006b -- MAC address of IUT
-- replace with your IUT address
DEVICE_ID = 207 -- Device object instance for IUT.
;--------------------------------------------------------------
;
; Setting up the network environment
NET_X = 5, ETHERNET -- A virtual network to simulate
-- requests from a remote network.
;--------------------------------------------------------------
SECTION Testing the ability to process messages from a remote network
;--------------------------------------------------------------
TEST #1
--- Sending a ReadProperty to retrieve the Vendor_Name of the
--- DEVICE object from a remote network.
DEPENDENCIES none -- add ReadProperty
REFERENCE (B) 6.5.2, 12.9.16,15.5; (T) 10.1
SEND (
NETWORK = NET_1
DESTINATION = IUT_MAC
DER = TRUE
SNET = NET_X
SADR = MY_MAC
PDU = Confirmed-Request
Service = ReadProperty
Object = 0, DEVICE, DEVICE_ID
Property = 1, Vendor-Name
)
--- The IUT should send a complex acknowledgement containing a
--- ReadPropertyAck and the value of the Vendor_Name property
--- of the DEVICE object.
EXPECT (
NETWORK = NET_1
DER = FALSE
DNET = NET_X
DADR = MY_MAC
PDU = ComplexAck
Service = ReadProperty
Object = 0, DEVICE, DEVICE_ID
Property = 1, Vendor-Name
OpenTag 3 ;Property Value(s)
AL = {Vendor-Name} ;compare with database
CloseTag 3
)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -