6.6.2b Invalid Primary Function Code (revision 3.1r1, subset level 3)

Device under test: Step Function I/O dnp3 outstation

10:55:15.024 Running procedure: 6.6.2b
10:55:15.026 step: 1 - (6.6.2 prologue)
10:55:15.026 - Cycle power to the DUT
10:55:15.026 [PLG] Cycling power
10:55:15.027 step: 2 - (6.6.2 prologue)
10:55:15.027 - Issue a RESET_LINK_STATES (0xC0) using link control block 0xC0
10:55:15.028 --L-> master: 1 pri: 1 fcb: 0 fcv: 0 func: RESET_LINK_STATES(0x00) 0xC0 length: 5 dest: 1024 src: 1
10:55:15.028 --P-> 05 64 05 C0 00 04 01 00 D7 F7
10:55:15.028 step: 3 - (6.6.2 prologue)
10:55:15.028 - Verify that the DUT answers with a well-formed link frame
10:55:15.028 - Verify that the frame uses link control block 0x00
10:55:15.029 <-P-- 05 64 05 00 01 00 00 04 27 70
10:55:15.029 <-L-- master: 0 pri: 0 fcb: 0 fcv: 0 func: ACK(0x00) 0x00 length: 5 dest: 1 src: 1024
10:55:15.029 step: 4 - (6.6.2 prologue)
10:55:15.029 - Read(0x01) fir: 1 fin: 1 con: 0 uns: 0 seq: 0x00 using link options: { control == 0xF3 }
10:55:15.029 - g60v1, All Objects
10:55:15.029 --A-> Read(0x01) fir: 1 fin: 1 con: 0 uns: 0 seq: 0x00
10:55:15.029 g60v1, All Objects
10:55:15.029 --T-> fir: 1 fin: 1 seq: 0
10:55:15.029 --L-> master: 1 pri: 1 fcb: 1 fcv: 1 func: CONFIRMED_USER_DATA(0x03) 0xF3 length: 11 dest: 1024 src: 1
10:55:15.029 --P-> 05 64 0B F3 00 04 01 00 17 D1
10:55:15.029 C0 C0 01 3C 01 06 FF 50
10:55:15.029 step: 5 - (6.6.2 prologue)
10:55:15.029 - Verify that the DUT answers with a well-formed link frame
10:55:15.029 - Verify that the frame uses link control block 0x00
10:55:15.030 <-P-- 05 64 05 00 01 00 00 04 27 70
10:55:15.030 <-L-- master: 0 pri: 0 fcb: 0 fcv: 0 func: ACK(0x00) 0x00 length: 5 dest: 1 src: 1024
10:55:15.030 step: 6 - (6.6.2 prologue)
10:55:15.030 - Read any number of valid responses beginning w/ sequence(0x00) and incrementing by 1 modulo 16
10:55:15.030 - Confirm each response that asks for a confirmation
10:55:15.031 <-P-- 05 64 E0 44 01 00 00 04 70 7A
10:55:15.031 C0 C0 81 90 00 01 01 01 00 00 0B 00 00 00 0A 02 97 78
10:55:15.031 01 00 00 13 00 01 01 01 01 01 01 01 01 01 01 01 96 07
10:55:15.031 01 01 01 01 01 01 01 01 01 14 02 01 00 00 09 00 26 7E
10:55:15.031 01 00 00 01 00 00 01 00 00 01 00 00 01 00 00 01 FE 85
10:55:15.031 00 00 01 00 00 01 00 00 01 00 00 01 00 00 15 02 85 CD
10:55:15.031 01 00 00 09 00 01 00 00 01 00 00 01 00 00 01 00 B6 06
10:55:15.031 00 01 00 00 01 00 00 01 00 00 01 00 00 01 00 00 9E 0F
10:55:15.031 01 00 00 1E 02 01 00 00 09 00 01 00 00 01 00 00 0A 10
10:55:15.031 01 00 00 01 00 00 01 00 00 01 00 00 01 00 00 01 FE 85
10:55:15.031 00 00 01 00 00 01 00 00 28 02 01 00 00 13 00 01 EF FE
10:55:15.031 00 00 01 00 00 01 00 00 01 00 00 01 00 00 01 00 DB 49
10:55:15.031 00 01 00 00 01 00 00 01 00 00 01 00 00 01 00 00 9E 0F
10:55:15.031 01 00 00 01 00 00 01 00 00 01 00 00 01 00 00 01 FE 85
10:55:15.031 00 00 01 00 00 01 00 00 01 00 00 61 8D
10:55:15.031 <-L-- master: 0 pri: 1 fcb: 0 fcv: 0 func: UNCONFIRMED_USER_DATA(0x04) 0x44 length: 224 dest: 1 src: 1024
10:55:15.031 <-T-- fir: 1 fin: 1 seq: 0
10:55:15.035 <-A-- Response(0x81) fir: 1 fin: 1 con: 0 uns: 0 seq: 0x00 IIN(DeviceRestart, NeedTime)
10:55:15.035 g1v1, 2-Byte Start/Stop, start: 0 stop: 11
10:55:15.035 [0] - BooleanValue(false)
10:55:15.035 [1] - BooleanValue(false)
10:55:15.035 [2] - BooleanValue(false)
10:55:15.035 [3] - BooleanValue(false)
10:55:15.035 [4] - BooleanValue(false)
10:55:15.035 [5] - BooleanValue(false)
10:55:15.035 [6] - BooleanValue(false)
10:55:15.035 [7] - BooleanValue(false)
10:55:15.035 [8] - BooleanValue(false)
10:55:15.035 [9] - BooleanValue(false)
10:55:15.035 [10] - BooleanValue(false)
10:55:15.035 [11] - BooleanValue(false)
10:55:15.035 g10v2, 2-Byte Start/Stop, start: 0 stop: 19
10:55:15.035 [0] - flags: 0x01
10:55:15.035 [1] - flags: 0x01
10:55:15.035 [2] - flags: 0x01
10:55:15.035 [3] - flags: 0x01
10:55:15.035 [4] - flags: 0x01
10:55:15.035 [5] - flags: 0x01
10:55:15.035 [6] - flags: 0x01
10:55:15.035 [7] - flags: 0x01
10:55:15.035 [8] - flags: 0x01
10:55:15.035 [9] - flags: 0x01
10:55:15.035 [10] - flags: 0x01
10:55:15.035 [11] - flags: 0x01
10:55:15.035 [12] - flags: 0x01
10:55:15.035 [13] - flags: 0x01
10:55:15.035 [14] - flags: 0x01
10:55:15.035 [15] - flags: 0x01
10:55:15.035 [16] - flags: 0x01
10:55:15.035 [17] - flags: 0x01
10:55:15.035 [18] - flags: 0x01
10:55:15.035 [19] - flags: 0x01
10:55:15.035 g20v2, 2-Byte Start/Stop, start: 0 stop: 9
10:55:15.035 [0] - flags: 0x01 count: 0
10:55:15.035 [1] - flags: 0x01 count: 0
10:55:15.035 [2] - flags: 0x01 count: 0
10:55:15.035 [3] - flags: 0x01 count: 0
10:55:15.035 [4] - flags: 0x01 count: 0
10:55:15.035 [5] - flags: 0x01 count: 0
10:55:15.035 [6] - flags: 0x01 count: 0
10:55:15.035 [7] - flags: 0x01 count: 0
10:55:15.035 [8] - flags: 0x01 count: 0
10:55:15.035 [9] - flags: 0x01 count: 0
10:55:15.035 g21v2, 2-Byte Start/Stop, start: 0 stop: 9
10:55:15.035 [0] - flags: 0x01 count: 0
10:55:15.035 [1] - flags: 0x01 count: 0
10:55:15.035 [2] - flags: 0x01 count: 0
10:55:15.035 [3] - flags: 0x01 count: 0
10:55:15.035 [4] - flags: 0x01 count: 0
10:55:15.035 [5] - flags: 0x01 count: 0
10:55:15.035 [6] - flags: 0x01 count: 0
10:55:15.035 [7] - flags: 0x01 count: 0
10:55:15.035 [8] - flags: 0x01 count: 0
10:55:15.035 [9] - flags: 0x01 count: 0
10:55:15.035 g30v2, 2-Byte Start/Stop, start: 0 stop: 9
10:55:15.035 [0] - flags: 0x01 value: 0
10:55:15.035 [1] - flags: 0x01 value: 0
10:55:15.035 [2] - flags: 0x01 value: 0
10:55:15.035 [3] - flags: 0x01 value: 0
10:55:15.035 [4] - flags: 0x01 value: 0
10:55:15.035 [5] - flags: 0x01 value: 0
10:55:15.035 [6] - flags: 0x01 value: 0
10:55:15.035 [7] - flags: 0x01 value: 0
10:55:15.035 [8] - flags: 0x01 value: 0
10:55:15.035 [9] - flags: 0x01 value: 0
10:55:15.035 g40v2, 2-Byte Start/Stop, start: 0 stop: 19
10:55:15.035 [0] - flags: 0x01 value: 0
10:55:15.035 [1] - flags: 0x01 value: 0
10:55:15.035 [2] - flags: 0x01 value: 0
10:55:15.035 [3] - flags: 0x01 value: 0
10:55:15.035 [4] - flags: 0x01 value: 0
10:55:15.035 [5] - flags: 0x01 value: 0
10:55:15.035 [6] - flags: 0x01 value: 0
10:55:15.035 [7] - flags: 0x01 value: 0
10:55:15.035 [8] - flags: 0x01 value: 0
10:55:15.035 [9] - flags: 0x01 value: 0
10:55:15.035 [10] - flags: 0x01 value: 0
10:55:15.035 [11] - flags: 0x01 value: 0
10:55:15.035 [12] - flags: 0x01 value: 0
10:55:15.035 [13] - flags: 0x01 value: 0
10:55:15.035 [14] - flags: 0x01 value: 0
10:55:15.035 [15] - flags: 0x01 value: 0
10:55:15.035 [16] - flags: 0x01 value: 0
10:55:15.035 [17] - flags: 0x01 value: 0
10:55:15.035 [18] - flags: 0x01 value: 0
10:55:15.035 [19] - flags: 0x01 value: 0
10:55:15.036 steps: 1 to 3
10:55:15.036 - Build a class 0 read (g60v1, qualifier 0x06) in a confirmed user data frame (control 0xD3)
10:55:15.036 - Keep the DIR, PRM, FCB and FCV bits of the control field valid, but set the function code to the undefined value 0x05
10:55:15.036 - Recompute the header CRC so it matches the altered control field
10:55:15.036 - Send the request
10:55:15.036 --A-> Read(0x01) fir: 1 fin: 1 con: 0 uns: 0 seq: 0x00
10:55:15.036 g60v1, All Objects
10:55:15.036 --T-> fir: 1 fin: 1 seq: 0
10:55:15.036 --L-> master: 1 pri: 1 fcb: 0 fcv: 1 func: Unknown(0x05) 0xD5 length: 11 dest: 1024 src: 1
10:55:15.036 --P-> 05 64 0B D5 00 04 01 00 5E 03
10:55:15.036 C0 C0 01 3C 01 06 FF 50
10:55:15.036 steps: 4 to 5
10:55:15.036 - Expect no link layer frames within 3000 ms, or a frame such that:
10:55:15.036 - Verify that the frame uses link function: NOT_SUPPORTED
10:55:18.039 frame receive timeout
10:55:18.039 step: 6
10:55:18.039 - Verify that no link layer frames are received within 2000 ms
10:55:20.042 frame receive timeout
10:55:20.042 step: 7
10:55:20.042 - Run the checks above again with another invalid function code
10:55:20.042 steps: 1 to 3
10:55:20.042 - Build a class 0 read (g60v1, qualifier 0x06) in a confirmed user data frame (control 0xD3)
10:55:20.042 - Keep the DIR, PRM, FCB and FCV bits of the control field valid, but set the function code to the undefined value 0x0A
10:55:20.042 - Recompute the header CRC so it matches the altered control field
10:55:20.042 - Send the request
10:55:20.042 --A-> Read(0x01) fir: 1 fin: 1 con: 0 uns: 0 seq: 0x00
10:55:20.042 g60v1, All Objects
10:55:20.042 --T-> fir: 1 fin: 1 seq: 0
10:55:20.043 --L-> master: 1 pri: 1 fcb: 0 fcv: 1 func: Unknown(0x0A) 0xDA length: 11 dest: 1024 src: 1
10:55:20.043 --P-> 05 64 0B DA 00 04 01 00 05 BF
10:55:20.043 C0 C0 01 3C 01 06 FF 50
10:55:20.043 steps: 4 to 5
10:55:20.043 - Expect no link layer frames within 3000 ms, or a frame such that:
10:55:20.043 - Verify that the frame uses link function: NOT_SUPPORTED
10:55:23.046 frame receive timeout
10:55:23.046 step: 6
10:55:23.046 - Verify that no link layer frames are received within 2000 ms
10:55:25.049 frame receive timeout
10:55:25.049 Passed procedure: 6.6.2b