Ask Your Question

Thinakaran_Gunasekar's profile - activity

2022-06-08 07:43:05 +0000 received badge  Notable Question (source)
2022-06-08 07:43:05 +0000 received badge  Popular Question (source)
2022-04-14 13:33:23 +0000 received badge  Taxonomist
2018-10-20 11:52:32 +0000 commented answer Unable to access data in second IOA

How to get only IOA, i.e asdu.ioa.fields[0] returns LayerField 104asdu.ioa: 345 but only 345 is required.

2018-10-15 15:52:14 +0000 marked best answer Unable to access data in second IOA

Dear all I'm using pyshark(python) to process dissected IEC 60870-5-104 packets. I'm able to access first IOA in the captured data but unable to access second/third IOA if NumIx >1. I'm using the following code:

cap=pyshark.LiveCapture(interface='Ethernet',display_filter="104apci and 104asdu");
IOA_Val = ((cap[4].IOA));
print(IOA_VAL)

Layer 4 of Pcap

Layer 104ASDU:
TypeId: M_SP_NA_1 (1)
0... .... = SQ: False
.000 0010 = NumIx: 2
..01 0100 = CauseTx: Inrogen (20)
.0.. .... = Negative: False
0... .... = Test: False
OA: 2
Addr: 1
IOA: 345
IOA: 345
SIQ: 0x00
.... ...0 = SPI: Off
...0 .... = BL: Not blocked
..0. .... = SB: Not Substituted
.0.. .... = NT: Topical
0... .... = IV: Valid
IOA: 57756
IOA: 57756
SIQ: 0x00
.... ...0 = SPI: Off
...0 .... = BL: Not blocked
..0. .... = SB: Not Substituted
.0.. .... = NT: Topical
0... .... = IV: Valid

This works if NumIx=1 but doesn't work if NumIx>1

How to access second IOA in same same packet

In simple words, I'm able to access IOA data of IOA Valu:345 but unable to access IOA data of IOA:57756

Pcap file: https://drive.google.com/open?id=1Z3c...

2018-10-15 14:35:41 +0000 commented answer Unable to access data in second IOA

Thank You It worked perfectly

2018-10-14 14:22:02 +0000 commented question Unable to access data in second IOA

I Have shared tthe pcap file

2018-10-14 14:19:48 +0000 received badge  Editor (source)
2018-10-14 14:19:48 +0000 edited question Unable to access data in second IOA

Unable to access data in second IOA Dear all I'm using pyshark(python) to process dissected IEC 60870-5-104 packets. I'

2018-10-14 07:53:00 +0000 asked a question Unable to access data in second IOA

Unable to access data in second IOA Dear all I'm using pyshark(python) to process dissected IEC 60870-5-104 packets. I'