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

Device under test: Step Function I/O dnp3 outstation

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