📄 readmult.vts
字号:
; Testing Support for Executing the BACnet ReadPropertyMultiple Service
; Version 1.0
;
; written by Steven T. Bushby, 09/16/96
; updated 10/29/96 added new error cases
; added DER bit
;
; This test script relies on required properties of the Device object and
; three other objects that have a Present_Value property to test the
; functionality of the ReadPropertyMultiple Service. The three additional
; objects must be configured using the constants OBJECT1 OBJECT2 and
; OBJECT3.
;
; The tests are based on laboratory experience with the NIST BACnet
; Interoperability Testing consortium.
;--------------------------------------------------------------
SETUP BACnet ReadPropertyMultiple Service Execution
;--------------------------------------------------------------
;
; Setting up the hardware parameters for the VTS computer
; and the IUT.
;
;
; the network parameter for the VTS computer
;
NET_1 = 1, ETHERNET, 0
--- The network which connects the VTS computer to 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.
NET_X = 5,ETHERNET
--- A virtual network to simulate requests from a remote network.
;
; parameters for the implementation under test (IUT).
; These default values are for a Landis&Gyr field panel gateway
; in the NIST testing laboratory. They must be changed to correspond
; to the actual IUT.
;
IUT_MAC = 0040ae000f9c
--- The physical Ethernet address of the IUT accessed
--- from network 1.
DEVICE_ID = 254
--- The device object instance number for the IUT.
OBJECT1 = Analog-Value, 1 -- set to any obj that supports PV
OBJECT2 = Analog-Output, 3 -- set to any obj that supports PV
OBJECT3 = Binary-Output, 2 -- set to any obj that supports PV
BAD-OBJ = Event-Enrollment, 99 -- set to any obj that is not in database
SECTION Testing the execution of the ReadPropertyMultiple service
;--------------------------------------------------------------
; Test group 1 verifies that a valid combinations of optional
; parameters specifying supported properties work for local
; messages.
TEST #1a
--- Read a single property from the Device object.
DEPENDENCIES none
REFERENCE Clause 15.7
SEND (
NETWORK = NET_1
DESTINATION = IUT_MAC
DER = TRUE
PDU = Confirmed-Request
Service = ReadPropertyMultiple
Object = 0, DEVICE, DEVICE_ID
OpenTag 1
Property = 0, Vendor-Name
CloseTag 1
)
--- The IUT should send a complex acknowledgement containing a
--- ReadPropertyMultipleAck and the value of the VendorName property
--- of the DEVICE object.
EXPECT (
NETWORK = NET_1
DER = FALSE
PDU = ComplexAck
Service = ReadPropertyMultiple
Object = 0, DEVICE, DEVICE_ID
OpenTag 1 ; list of results
Property = 2, Vendor-Name
OpenTag 4 ; property value
AL = {vendor-name}
CloseTag 4
CloseTag 1
)
;--------------------------------------------------------------
TEST #1b
--- Read multiple properties from the Device Object
DEPENDENCIES none
REFERENCE Clause 15.7
SEND (
NETWORK = NET_1
DESTINATION = IUT_MAC
DER = TRUE
PDU = Confirmed-Request
Service = ReadPropertyMultiple
Object = 0, DEVICE, DEVICE_ID
OpenTag 1
Property = 0, Object-Identifier
Property = 0, Object-Type
Property = 0, Vendor-Identifier
CloseTag 1
)
--- The IUT should send a complex acknowledgement containing a
--- ReadPropertyMultipleAck and the values of the requested properties.
EXPECT (
NETWORK = NET_1
DER = FALSE
PDU = ComplexAck
Service = ReadPropertyMultiple
Object = 0, DEVICE, DEVICE_ID
OpenTag 1 ; list of results
Property = 2, Object-Identifier
OpenTag 4 ; property value
AL = {object-identifier}
CloseTag 4
Property = 2, Object-Type
OpenTag 4 ; property value
AL = {object-type}
CloseTag 4
Property = 2, Vendor-Identifier
OpenTag 4 ; property value
AL = {vendor-identifier}
CloseTag 4
CloseTag 1
)
;--------------------------------------------------------------
TEST #1c
--- Read a single property from multiple objects
DEPENDENCIES none
REFERENCE Clause 15.7
SEND (
NETWORK = NET_1
DER = TUE
DESTINATION = IUT_MAC
PDU = Confirmed-Request
Service = ReadPropertyMultiple
Object = 0, DEVICE, DEVICE_ID
OpenTag 1
Property = 0, Object-Name
CloseTag 1
Object = 0, OBJECT1
OpenTag 1
Property = 0, Object-Name
CloseTag 1
Object = 0, OBJECT2
OpenTag 1
Property = 0, Object-Name
CloseTag 1
Object = 0, OBJECT3
OpenTag 1
Property = 0, Object-Name
CloseTag 1
)
--- The IUT should send a complex acknowledgement containing a
--- ReadPropertyMultipleAck and the values of the requested properties.
EXPECT (
NETWORK = NET_1
DER = FALSE
PDU = ComplexAck
Service = ReadPropertyMultiple
Object = 0, DEVICE, DEVICE_ID
OpenTag 1 ; list of results
Property = 2, Object-Name
OpenTag 4 ; property value
AL = {object-name}
CloseTag 4
CloseTag 1
Object = 0, OBJECT1
OpenTag 1 ; list of results
Property = 2, Object-Name
OpenTag 4 ; property value
AL = {object-name}
CloseTag 4
CloseTag 1
Object = 0, OBJECT2
OpenTag 1 ; list of results
Property = 2, Object-Name
OpenTag 4 ; property value
AL = {object-name}
CloseTag 4
CloseTag 1
Object = 0, OBJECT3
OpenTag 1 ; list of results
Property = 2, Object-Name
OpenTag 4 ; property value
AL = {object-name}
CloseTag 4
CloseTag 1
)
;--------------------------------------------------------------
TEST #1d
--- Read a multiple properties from multiple objects
DEPENDENCIES none
REFERENCE Clause 15.7
SEND (
NETWORK = NET_1
DESTINATION = IUT_MAC
DER = TRUE
PDU = Confirmed-Request
Service = ReadPropertyMultiple
Object = 0, DEVICE, DEVICE_ID
OpenTag 1
Property = 0, Object-Name
Property = 0, System-Status
Property = 0, Max-APDU-Length-Accepted
-- Property = 0, Protocol-Services-Supported
CloseTag 1
Object = 0, OBJECT1
OpenTag 1
Property = 0, Object-Name
Property = 0, Present-Value
Property = 0, Status-Flags
CloseTag 1
Object = 0, OBJECT2
OpenTag 1
Property = 0, Object-Name
Property = 0, Present-Value
Property = 0, Status-Flags
CloseTag 1
Object = 0, OBJECT3
OpenTag 1
Property = 0, Object-Name
Property = 0, Present-Value
CloseTag 1
)
--- The IUT should send a complex acknowledgement containing a
--- ReadPropertyMultipleAck and the values of the requested properties.
EXPECT (
NETWORK = NET_1
DER = FALSE
PDU = ComplexAck
Service = ReadPropertyMultiple
Object = 0, DEVICE, DEVICE_ID
OpenTag 1 ; list of results
Property = 2, Object-Name
OpenTag 4 ; property value
AL = {object-name}
CloseTag 4
Property = 2, System-Status
OpenTag 4
AL = {system-status}
CloseTag 4
Property = 2, Max-APDU-Length-Accepted
OpenTag 4
AL = {max-apdu-length-accepted}
CloseTag 4
-- Property = 2, Protocol-Services-Supported
-- OpenTag 4
-- AL = {protocol-services-supported}
-- CloseTag 4
CloseTag 1
Object = 0, OBJECT1
OpenTag 1 ; list of results
Property = 2, Object-Name
OpenTag 4 ; property value
AL = {object-name}
CloseTag 4
Property = 2, Present-Value
OpenTag 4
AL = {present-value}
CloseTag 4
Property = 2, Status-Flags
OpenTag 4
AL = {status-flags}
CloseTag 4
CloseTag 1
Object = 0, OBJECT2
OpenTag 1 ; list of results
Property = 2, Object-Name
OpenTag 4 ; property value
AL = {object-name}
CloseTag 4
Property = 2, Present-Value
OpenTag 4
AL = {present-value}
CloseTag 4
Property = 2, Status-Flags
OpenTag 4
AL = {status-flags}
CloseTag 4
CloseTag 1
Object = 0, OBJECT3
OpenTag 1 ; list of results
Property = 2, Object-Name
OpenTag 4 ; property value
AL = {object-name}
CloseTag 4
Property = 2, Present-Value
OpenTag 4
AL = {present-value}
CloseTag 4
CloseTag 1
)
;--------------------------------------------------------------
TEST #1e
--- Read multiple properties from a single object with an
--- unsupported property in the middle to cause an access
--- error.
DEPENDENCIES none
REFERENCE Clause 15.7
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -