📄 readmult.vts
字号:
SEND (
NETWORK = NET_1
DESTINATION = IUT_MAC
DER = TUE
PDU = Confirmed-Request
Service = ReadPropertyMultiple
Object = 0, DEVICE, DEVICE_ID
OpenTag 1
Property = 0, Object-Name
Property = 0, System-Status
Property = 0, Weekly-Schedule
Property = 0, Max-APDU-Length-Accepted
-- Property = 0, Protocol-Services-Supported
CloseTag 1
)
--- The IUT should send a complex acknowledgement containing a
--- ReadPropertyMultipleAck. An appropriate value should be returned
--- for each property except for Weekly_Schedule which should return
--- an access error. Returning an error pdu is a failure.
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 ; property value
AL = {system-status}
CloseTag 4
Property = 2, Weekly-Schedule
OpenTag 5 ; access error
AL = X'9102' ; error class = property
AL = X'9120' ; error code = unknown property
CloseTag 5
Property = 2, Max-APDU-Length-Accepted
OpenTag 4 ; property value
AL = {max-apdu-length-accepted}
CloseTag 4
-- Property = 2, Protocol-Services-Supported
-- OpenTag 4 ; property value
-- AL = {protocol-services-supported}
-- CloseTag 4
CloseTag 1
)
;--------------------------------------------------------------
TEST #1f
--- Read multiple properties from multiple objects with one
--- unsupported object ID in the list. The unsupported object
--- has multiple properties specified. The objective is to
--- verify that an access error is returned for each specified
--- property of the unsupported 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-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, BAD-OBJ
OpenTag 1
Property = 0, Object-Name
Property = 0, Object-Type
Property = 0, Description
Property = 0, Notify-type
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. An appropriate value should be returned
--- for each property except for the properties of BAD-OBJ. Each
--- property of this object should return an access error with
--- error class = object and error code = unknown object.
--- Returning an error pdu is a failure.
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, BAD-OBJ
OpenTag 1 ; list of results
Property = 2, Object-Name
OpenTag 5 ; access error
AL = X'9101' ; error class = object
AL = X'911F' ; error code = unknown object
CloseTag 5
Property = 2, Object-Type
OpenTag 5 ; access error
AL = X'9101' ; error class = object
AL = X'911F' ; error code = unknown object
CloseTag 5
Property = 2, Description
OpenTag 5 ; access error
AL = X'9101' ; error class = object
AL = X'911F' ; error code = unknown object
CloseTag 5
Property = 2, Notify-Type
OpenTag 5 ; access error
AL = X'9101' ; error class = object
AL = X'911F' ; error code = unknown object
CloseTag 5
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 #1g
-- Test All
DEPENDENCIES none
REFERENCE Clause 15.7.3.1.2
SEND (
NETWORK = NET_1
DESTINATION = IUT_MAC
DER = TRUE
PDU = Confirmed-Request
Service = ReadPropertyMultiple
Object = 0, OBJECT1
OpenTag 1
Property = 0, All
CloseTag 1
)
;--------------------------------------------------------------
TEST #1h
-- Test Required
DEPENDENCIES none
REFERENCE Clause 15.7.3.1.2
SEND (
NETWORK = NET_1
DESTINATION = IUT_MAC
DER = TRUE
PDU = Confirmed-Request
Service = ReadPropertyMultiple
Object = 0, OBJECT1
OpenTag 1
Property = 0, Required
CloseTag 1
)
;--------------------------------------------------------------
TEST #1i
-- Test Optional
DEPENDENCIES none
REFERENCE Clause 15.7.3.1.2
SEND (
NETWORK = NET_1
DESTINATION = IUT_MAC
DER = TRUE
PDU = Confirmed-Request
Service = ReadPropertyMultiple
Object = 0, OBJECT1
OpenTag 1
Property = 0, Optional
CloseTag 1
)
;--------------------------------------------------------------
TEST #2a
--- Read multiple properties from multiple objects with none
--- of the specified combinations of objects and properties
--- supported. The obective is to verify that an error pdu is
--- returned.
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, Date-List
Property = 0, All-Writes-Successful
Property = 0, Action
Property = 0, Modification-Date
CloseTag 1
Object = 0, BAD-OBJ
OpenTag 1
Property = 0, Object-Name
Property = 0, Object-Type
Property = 0, Description
Property = 0, Notify-type
CloseTag 1
)
--- The IUT should send an error pdu.
EXPECT (
NETWORK = NET_1
DER = FALSE
PDU = Error
Service = ReadPropertyMultiple
)
;--------------------------------------------------------------
TEST #2b
--- Read one properties from one objects that is not supported.
--- The obective is to verify that an error pdu is returned.
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, Date-List
CloseTag 1
)
--- The IUT should send an error pdu.
EXPECT (
NETWORK = NET_1
DER = FALSE
PDU = Error
Service = ReadPropertyMultiple
)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -